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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 9251026: Reinitialize LocalState's CommandLinePrefStore after about_flags updates the command line. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/prefs/pref_service.h » ('j') | chrome/browser/prefs/pref_service_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 118120)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -58,7 +58,6 @@
#include "chrome/browser/notifications/desktop_notification_service.h"
#include "chrome/browser/notifications/desktop_notification_service_factory.h"
#include "chrome/browser/plugin_prefs.h"
-#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/pref_value_store.h"
#include "chrome/browser/prerender/prerender_field_trial.h"
@@ -466,7 +465,7 @@
#if defined(OS_MACOSX)
OSStatus KeychainCallback(SecKeychainEvent keychain_event,
- SecKeychainCallbackInfo *info, void *context) {
+ SecKeychainCallbackInfo* info, void* context) {
return noErr;
}
#endif
@@ -1250,6 +1249,7 @@
// Convert active labs into switches. Modifies the current command line.
about_flags::ConvertFlagsToSwitches(local_state_,
Lei Zhang 2012/01/19 00:23:26 We have a circular dependency here, since ConvertF
CommandLine::ForCurrentProcess());
+ local_state_->UpdateCommandLinePrefStore(CommandLine::ForCurrentProcess());
// Reset the command line in the crash report details, since we may have
// just changed it to include experiments.
« no previous file with comments | « no previous file | chrome/browser/prefs/pref_service.h » ('j') | chrome/browser/prefs/pref_service_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698