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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 12225046: [cros] Set profile pref for locally managed users (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize pref on Profile::CREATE_STATUS_CREATED cb Created 7 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
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index d35f18603f106b0968c2817e8e3a6d3f2925f976..8948811d363bb2cbbe9882805605b65749ccf6c8 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -466,7 +466,8 @@ void ProfileManager::CreateProfileAsync(
}
// static
-void ProfileManager::CreateDefaultProfileAsync(const CreateCallback& callback) {
+void ProfileManager::CreateDefaultProfileAsync(const CreateCallback& callback,
+ bool is_managed) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
ProfileManager* profile_manager = g_browser_process->profile_manager();
@@ -475,8 +476,12 @@ void ProfileManager::CreateDefaultProfileAsync(const CreateCallback& callback) {
default_profile_dir = default_profile_dir.Append(
profile_manager->GetInitialProfileDir());
+ // Chrome OS specific note: since we pass string16() here as the icon_url,
Dmitry Polukhin 2013/02/08 17:26:53 Why do we need this change in this case??? If all
Nikita (slow) 2013/02/08 21:55:05 I agree that we could always pass false here for |
rpetterson 2013/02/08 22:37:56 nit: The comment could be a bit clearer: which pro
Nikita (slow) 2013/02/11 09:42:12 Done.
+ // profile cache information will not get updated with the is_managed value.
+ // But on Chrome OS this property will get initialized in
+ // Profile::CREATE_STATUS_CREATED callback.
profile_manager->CreateProfileAsync(
- default_profile_dir, callback, string16(), string16(), false);
+ default_profile_dir, callback, string16(), string16(), is_managed);
}
bool ProfileManager::AddProfile(Profile* profile) {
« chrome/browser/chromeos/login/login_utils.cc ('K') | « chrome/browser/profiles/profile_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698