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

Unified Diff: chrome/browser/ui/browser_init.cc

Issue 6484033: Fix a bug that caused Chrome OS system preferences not to work in the guest mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rework again! Created 9 years, 10 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 | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_init.cc
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
index e379855542d85f59401a433df0f95bd3f600d522..ca0b49ece1c85e4d0a55c91d66f53cc42b114117 100644
--- a/chrome/browser/ui/browser_init.cc
+++ b/chrome/browser/ui/browser_init.cc
@@ -502,6 +502,13 @@ bool BrowserInit::LaunchBrowser(const CommandLine& command_line,
}
#if defined(OS_CHROMEOS)
+ // Initialize Chrome OS preferences like touch pad sensitivity. For the
+ // preferences to work in the guest mode, the initialization has to be
+ // done after |profile| is switched to the off-the-record profile (which
+ // is actually GuestSessionProfile in the guest mode). See the
+ // GetOffTheRecordProfile() call above.
+ profile->InitChromeOSPreferences();
+
// Create the WmMessageListener so that it can listen for messages regardless
// of what window has focus.
chromeos::WmMessageListener::GetInstance();
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698