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

Issue 6267009: Move experiments settings (about:flags) from profile to local state. (Closed)

Created:
9 years, 11 months ago by bbudge
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

This patch moves the experiments settings from the user profile to the browser's local state, since these settings correspond to command line switches. This is a release blocker for NaCl, so we decided to push this through. TEST=manual BUG= http://code.google.com/p/nativeclient/issues/detail?id=1322 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72225

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -12 lines) Patch
M chrome/browser/browser_main.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/flags_ui.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/flags_ui.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bbudge
9 years, 11 months ago (2011-01-21 19:08:59 UTC) #1
Nico
The first line of the CL description is misleading, as this CL only moves about:flags ...
9 years, 11 months ago (2011-01-21 19:21:22 UTC) #2
Miranda Callahan
On 2011/01/21 19:21:22, Nico wrote: > The first line of the CL description is misleading, ...
9 years, 11 months ago (2011-01-21 19:24:03 UTC) #3
bbudge
Changed the issue title. On 2011/01/21 19:24:03, Miranda Callahan wrote: > On 2011/01/21 19:21:22, Nico ...
9 years, 11 months ago (2011-01-21 22:55:05 UTC) #4
stevenjb
Unfortunately in ChromeOS, this change creates the following problem which breaks all of the ChromeOS ...
9 years, 11 months ago (2011-01-22 06:02:02 UTC) #5
Nico
stevenjb: I think we can just delete the ChromeOS migration code. It's been there for ...
9 years, 11 months ago (2011-01-22 06:27:58 UTC) #6
Miranda Callahan
9 years, 11 months ago (2011-01-22 14:11:13 UTC) #7
I think that getting rid of the migration code is good in any case; as Nico
says, it's been there for a while -- and "about:flags" comes with so many
caveats as to things breaking and changing that slipping this particular rug out
from underneath those who haven't updated in a while seems completely
unproblematic.

Most importantly, it's good to ensure that migration code like this is
temporary, and it looks like it's time for it to go.

On 2011/01/22 06:27:58, Nico wrote:
> stevenjb: I think we can just delete the ChromeOS migration code. It's
> been there for a while, and stuff should be migrated for everyone who
> cared about these settings. Do you think that will help?
> 
> On Fri, Jan 21, 2011 at 10:02 PM,  <mailto:stevenjb@chromium.org> wrote:
> > Unfortunately in ChromeOS, this change creates the following problem which
> > breaks all of the ChromeOS browser_tests and ui_tests. (See
> >
>
http://build.chromium.org/p/chromium/builders/Linux%2520Builder%2520%2528Chro...).
> >
> > about_flags::ConvertFlagsToSwitches() calls
> > about_flags::MigrateChromeOSLabsPrefs() which expects a bunch of preferences
> > to
> > be set.
> >
> > These preferences are not actually set until ProfileImpl::GetPrefs() gets
> > called
> > from ProfileManager::GetDefaultProfile () (the first occurrence for ChromeOS
> > being from g_browser_process->profile_manager()->GetDefaultProfile() called
> > in
> > browser_main.cc).
> >
> > I'm not sure whether we need to call GetDefaultProfile() earlier, call
> > ConvertFlagsToSwitches() later, or something more complicated.
> >
> >
> > http://codereview.chromium.org/6267009/
> >

Powered by Google App Engine
This is Rietveld 408576698