Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Issue 2805683003: Allow for pausing background tabs on desktop via about:flags. (Closed)

Created:
3 years, 8 months ago by ojan
Modified:
3 years, 8 months ago
CC:
altimin, asvitkine+watch_chromium.org, chromium-reviews, panicker, Sami
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow for pausing timers in background tabs on desktop via about:flags. This is a first step towards trying to get a flag that's good enough for us to dogfood ourselves to see if there's something we could ship regarding pausing background tabs that's web compatible enough. Speculatively plumb through the site engagement levels so that the followup patch can hook them up to the scheduler. Just shipping this flag as is would clearly not be compatible enough though. BUG=709082 Review-Url: https://codereview.chromium.org/2805683003 Cr-Commit-Position: refs/heads/master@{#463749} Committed: https://chromium.googlesource.com/chromium/src/+/38c67835dc36e9378584fde1da493eccb906db26

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use base::FeatureList and include the engagement values. #

Total comments: 1

Patch Set 3 : address review feedback #

Patch Set 4 : fix merge conflict. #

Patch Set 5 : Fix android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -1 line) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 3 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/pause_tabs_field_trial.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
ojan
Jochen, putting you as reviewer for OWNERS reasons. panicker, skyostil, altimin: FYI. I'm not trying ...
3 years, 8 months ago (2017-04-06 16:51:37 UTC) #2
jochen (gone - plz use gerrit)
please ask a metrics owner to approve the histograms.xml change - I can only approve ...
3 years, 8 months ago (2017-04-07 06:57:08 UTC) #3
ojan
Alexei, lgty?
3 years, 8 months ago (2017-04-07 17:01:34 UTC) #5
Alexei Svitkine (slow)
For new flags, the best practice is to use a base::Feature. See go/feature-api-announcement Suggest using ...
3 years, 8 months ago (2017-04-07 17:09:07 UTC) #6
Sami
lgtm % Alexei's comment. https://codereview.chromium.org/2805683003/diff/1/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/2805683003/diff/1/chrome/common/chrome_switches.cc#newcode657 chrome/common/chrome_switches.cc:657: const char kPauseBackgroundTabs[] = "pause-background-tabs"; ...
3 years, 8 months ago (2017-04-07 17:11:12 UTC) #8
panicker
LGTM This suspends timers only right? If so - could you update the CL description ...
3 years, 8 months ago (2017-04-07 19:44:06 UTC) #10
ojan
I switched to using base::Feature, but I also went ahead and added the site engagement ...
3 years, 8 months ago (2017-04-08 02:28:53 UTC) #12
Alexei Svitkine (slow)
lgtm % comments https://codereview.chromium.org/2805683003/diff/20001/chrome/common/pause_tabs_field_trial.h File chrome/common/pause_tabs_field_trial.h (right): https://codereview.chromium.org/2805683003/diff/20001/chrome/common/pause_tabs_field_trial.h#newcode22 chrome/common/pause_tabs_field_trial.h:22: const char kPauseBackgroundTabsFeatureModeParameterMax[] = "max"; Nit: ...
3 years, 8 months ago (2017-04-10 20:44:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805683003/40001
3 years, 8 months ago (2017-04-11 00:42:07 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/187921) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-11 00:45:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805683003/60001
3 years, 8 months ago (2017-04-11 01:10:10 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/245761)
3 years, 8 months ago (2017-04-11 02:50:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805683003/80001
3 years, 8 months ago (2017-04-11 16:47:58 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/191641)
3 years, 8 months ago (2017-04-11 18:03:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805683003/80001
3 years, 8 months ago (2017-04-11 19:54:28 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 20:28:54 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/38c67835dc36e9378584fde1da49...

Powered by Google App Engine
This is Rietveld 408576698