--audio-service-quit-timeout-ms=0 actually sets a timeout of 0 |
|||||||||
Issue descriptionRepro steps: 1. Launch ./out/lin/chrome --enable-features=AudioServiceAudioStreams,AudioServiceOutOfProcess,AudioServiceLaunchOnStartup --audio-service-quit-timeout-ms=0 2. Open the task manager. Note lack of audio service. 3. Play yt video. Audio service starts. 4. Close yt tab. Audio service quits right away. It is supposed to stay alive indefinitely. Broken by https://chromium-review.googlesource.com/c/chromium/src/+/1348629 as far as I can tell. The service_manager::ServiceKeepalive doesn't treat base::TimeDelta() in any special way but instead takes nullopt to indicate that we shouldn't tear down the service.
,
Jan 9
,
Jan 9
,
Jan 9
Issue 913476 has been merged into this issue.
,
Jan 9
Sorry for the breakage. Simple solution will be to pass base::nullopt to the ServiceKeeplive constructor if a zero TimeDelta is passed to the service constructor. Probably a better long-term solution is to push the special treatment of zero up even further (i.e. to whatever processes the command-line arg) and make the service constructor take an Optional<TimeDelta> too.
,
Jan 9
It's my fault - missed it during the code review. Good catch Max!
,
Jan 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f10ae53e17c31f66b1597f535e4ceeacb820ced0 commit f10ae53e17c31f66b1597f535e4ceeacb820ced0 Author: Max Morin <maxmorin@chromium.org> Date: Thu Jan 10 09:15:16 2019 Fix audio service quit timeout logic. With this change, setting it to 0 is still taken as "tear down asap", but the default value is "never tear down". The field trial testing config is updated to not set the teardown_timeout_s parameters (since the default is what we want already). Bug: 920173 Change-Id: Id49a60c7a6ffd231827248431d017755901bd1ee Tbr: dalecurtis Reviewed-on: https://chromium-review.googlesource.com/c/1402766 Commit-Queue: Max Morin <maxmorin@chromium.org> Reviewed-by: Olga Sharonova <olka@chromium.org> Reviewed-by: Robert Kaplow <rkaplow@chromium.org> Cr-Commit-Position: refs/heads/master@{#621514} [modify] https://crrev.com/f10ae53e17c31f66b1597f535e4ceeacb820ced0/media/base/media_switches.cc [modify] https://crrev.com/f10ae53e17c31f66b1597f535e4ceeacb820ced0/services/audio/service.cc [modify] https://crrev.com/f10ae53e17c31f66b1597f535e4ceeacb820ced0/services/audio/service.h [modify] https://crrev.com/f10ae53e17c31f66b1597f535e4ceeacb820ced0/services/audio/service_factory.cc [modify] https://crrev.com/f10ae53e17c31f66b1597f535e4ceeacb820ced0/services/audio/test/service_lifetime_connector_test.cc [modify] https://crrev.com/f10ae53e17c31f66b1597f535e4ceeacb820ced0/testing/variations/fieldtrial_testing_config.json
,
Jan 11
Verified with new unit tests and also manual testing.
,
Jan 11
Released in 73.0.3668.0 Canary. The change fixes how an absence of audio service teardown timeout in finch config is interpreted by the audio service experiment; it does not affect non-experimental path. Safe change. Requesting a merge - we need this fix to continue experimentation.
,
Jan 11
This bug requires manual review: M72 has already been promoted to the beta branch, so this requires manual review Please contact the milestone owner if you have questions. Owners: govind@(Android), kariahda@(iOS), djmm@(ChromeOS), abdulsyed@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 11
Approved
,
Jan 14
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/356fbf675454dd6628da815fc8217275a8f82db5 commit 356fbf675454dd6628da815fc8217275a8f82db5 Author: Max Morin <maxmorin@chromium.org> Date: Mon Jan 14 13:12:30 2019 [M72]Fix audio service quit timeout logic. With this change, setting it to 0 is still taken as "tear down asap", but the default value is "never tear down". The field trial testing config is updated to not set the teardown_timeout_s parameters (since the default is what we want already). Bug: 920173 Change-Id: Id49a60c7a6ffd231827248431d017755901bd1ee Tbr: dalecurtis Reviewed-on: https://chromium-review.googlesource.com/c/1402766 Commit-Queue: Max Morin <maxmorin@chromium.org> Reviewed-by: Olga Sharonova <olka@chromium.org> Reviewed-by: Robert Kaplow <rkaplow@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#621514}(cherry picked from commit f10ae53e17c31f66b1597f535e4ceeacb820ced0) Reviewed-on: https://chromium-review.googlesource.com/c/1409193 Reviewed-by: Max Morin <maxmorin@chromium.org> Cr-Commit-Position: refs/branch-heads/3626@{#663} Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437} [modify] https://crrev.com/356fbf675454dd6628da815fc8217275a8f82db5/media/base/media_switches.cc [modify] https://crrev.com/356fbf675454dd6628da815fc8217275a8f82db5/services/audio/service.cc [modify] https://crrev.com/356fbf675454dd6628da815fc8217275a8f82db5/services/audio/service.h [modify] https://crrev.com/356fbf675454dd6628da815fc8217275a8f82db5/services/audio/service_factory.cc [modify] https://crrev.com/356fbf675454dd6628da815fc8217275a8f82db5/services/audio/test/service_lifetime_connector_test.cc [modify] https://crrev.com/356fbf675454dd6628da815fc8217275a8f82db5/testing/variations/fieldtrial_testing_config.json
,
Jan 14
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/356fbf675454dd6628da815fc8217275a8f82db5 Commit: 356fbf675454dd6628da815fc8217275a8f82db5 Author: maxmorin@chromium.org Commiter: maxmorin@chromium.org Date: 2019-01-14 13:12:30 +0000 UTC [M72]Fix audio service quit timeout logic. With this change, setting it to 0 is still taken as "tear down asap", but the default value is "never tear down". The field trial testing config is updated to not set the teardown_timeout_s parameters (since the default is what we want already). Bug: 920173 Change-Id: Id49a60c7a6ffd231827248431d017755901bd1ee Tbr: dalecurtis Reviewed-on: https://chromium-review.googlesource.com/c/1402766 Commit-Queue: Max Morin <maxmorin@chromium.org> Reviewed-by: Olga Sharonova <olka@chromium.org> Reviewed-by: Robert Kaplow <rkaplow@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#621514}(cherry picked from commit f10ae53e17c31f66b1597f535e4ceeacb820ced0) Reviewed-on: https://chromium-review.googlesource.com/c/1409193 Reviewed-by: Max Morin <maxmorin@chromium.org> Cr-Commit-Position: refs/branch-heads/3626@{#663} Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437} |
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by maxmorin@chromium.org
, Jan 9