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

Issue 111033005: Support experiment control of profile-management flags. (Closed)

Created:
7 years ago by bcwhite
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Support experiment control of profile-management flags. Three flags can now be controlled via an "experiment". EnableWebBasedSignin GoogleProfileInfo NewProfileManagement Also, correct name of function to match command-line flag change: EnableInlineSignin => !EnableWebBasedSignin BUG=324046 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243668

Patch Set 1 #

Patch Set 2 : removed unused global #

Patch Set 3 : give bcwhite OWNER permission for new switches file #

Total comments: 2

Patch Set 4 : use ! instead of ^ to return desired state #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -12 lines) Patch
M chrome/browser/signin/signin_header_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/signin_promo.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/OWNERS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/profile_management_switches.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/profile_management_switches.cc View 1 2 3 1 chunk +23 lines, -7 lines 1 comment Download

Messages

Total messages: 17 (0 generated)
bcwhite
Merry Christmas!
7 years ago (2013-12-23 18:41:09 UTC) #1
Nico
(replacing me with guohui since I'm probably here for the ` EnableInlineSignin => !EnableWebBasedSignin` change ...
7 years ago (2013-12-23 18:45:00 UTC) #2
bcwhite
removed unused global
7 years ago (2013-12-23 19:41:28 UTC) #3
guohui
lgtm
7 years ago (2013-12-23 20:45:14 UTC) #4
bcwhite
give bcwhite OWNER permission for new switches file
6 years, 11 months ago (2014-01-06 16:22:50 UTC) #5
bcwhite
+thakis (OWNER for chrome/common) Niko, I need your approval for the files under chrome/common. I've ...
6 years, 11 months ago (2014-01-06 16:24:19 UTC) #6
Roger Tawa OOO till Jul 10th
lgtm, one nit below. https://codereview.chromium.org/111033005/diff/270001/chrome/common/profile_management_switches.cc File chrome/common/profile_management_switches.cc (right): https://codereview.chromium.org/111033005/diff/270001/chrome/common/profile_management_switches.cc#newcode22 chrome/common/profile_management_switches.cc:22: return false ^ negate; Nit: ...
6 years, 11 months ago (2014-01-07 17:01:54 UTC) #7
Nico
lgtm
6 years, 11 months ago (2014-01-07 19:58:14 UTC) #8
bcwhite
use ! instead of ^ to return desired state
6 years, 11 months ago (2014-01-07 21:21:02 UTC) #9
bcwhite
On 2014/01/07 21:21:02, bcwhite wrote: > use ! instead of ^ to return desired state ...
6 years, 11 months ago (2014-01-07 21:22:45 UTC) #10
bcwhite
https://codereview.chromium.org/111033005/diff/270001/chrome/common/profile_management_switches.cc File chrome/common/profile_management_switches.cc (right): https://codereview.chromium.org/111033005/diff/270001/chrome/common/profile_management_switches.cc#newcode22 chrome/common/profile_management_switches.cc:22: return false ^ negate; On 2014/01/07 17:01:54, Roger Tawa ...
6 years, 11 months ago (2014-01-07 21:23:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/111033005/350001
6 years, 11 months ago (2014-01-08 13:44:49 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=243311
6 years, 11 months ago (2014-01-08 16:51:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/111033005/350001
6 years, 11 months ago (2014-01-08 19:14:16 UTC) #14
commit-bot: I haz the power
Change committed as 243668
6 years, 11 months ago (2014-01-08 22:12:09 UTC) #15
acleung1
https://codereview.chromium.org/111033005/diff/350001/chrome/common/profile_management_switches.cc File chrome/common/profile_management_switches.cc (right): https://codereview.chromium.org/111033005/diff/350001/chrome/common/profile_management_switches.cc#newcode24 chrome/common/profile_management_switches.cc:24: return CommandLine::ForCurrentProcess()->HasSwitch(command_switch); Hi Brian. Shouldn't this take priority? For ...
6 years, 11 months ago (2014-01-14 22:20:25 UTC) #16
bcwhite
6 years, 11 months ago (2014-01-15 20:28:57 UTC) #17
Message was sent while issue was closed.
On 2014/01/14 22:20:25, acleung1 wrote:
>
https://codereview.chromium.org/111033005/diff/350001/chrome/common/profile_m...
> File chrome/common/profile_management_switches.cc (right):
> 
>
https://codereview.chromium.org/111033005/diff/350001/chrome/common/profile_m...
> chrome/common/profile_management_switches.cc:24: return
> CommandLine::ForCurrentProcess()->HasSwitch(command_switch);
> Hi Brian.
> 
> Shouldn't this take priority? For people enabling it for testing purpose?

By that you mean, if somebody specifically adds that flag, we should honor it
even if an experiment is trying to do something to the contrary?

Good question.  We could get odd results due to mixing between experiment
settings and command-line flags.  There's another CL
(https://codereview.chromium.org/136693007/) that allows a single command-line
flag to behave the same as enabling the experiment; perhaps it, at least, should
come before the experiment test.

Powered by Google App Engine
This is Rietveld 408576698