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

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile.h" 5 #include "chrome/browser/profiles/profile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return NULL; 50 return NULL;
51 } 51 }
52 52
53 Profile::Delegate::~Delegate() { 53 Profile::Delegate::~Delegate() {
54 } 54 }
55 55
56 // static 56 // static
57 const char Profile::kProfileKey[] = "__PROFILE__"; 57 const char Profile::kProfileKey[] = "__PROFILE__";
58 58
59 // static 59 // static
60 void Profile::RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 60 void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
61 registry->RegisterBooleanPref( 61 registry->RegisterBooleanPref(
62 prefs::kSearchSuggestEnabled, 62 prefs::kSearchSuggestEnabled,
63 true, 63 true,
64 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 64 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
65 registry->RegisterBooleanPref( 65 registry->RegisterBooleanPref(
66 prefs::kSessionExitedCleanly, 66 prefs::kSessionExitedCleanly,
67 true, 67 true,
68 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 68 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
69 registry->RegisterStringPref( 69 registry->RegisterStringPref(
70 prefs::kSessionExitType, 70 prefs::kSessionExitType,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 void Profile::MaybeSendDestroyedNotification() { 190 void Profile::MaybeSendDestroyedNotification() {
191 if (!sent_destroyed_notification_) { 191 if (!sent_destroyed_notification_) {
192 sent_destroyed_notification_ = true; 192 sent_destroyed_notification_ = true;
193 content::NotificationService::current()->Notify( 193 content::NotificationService::current()->Notify(
194 chrome::NOTIFICATION_PROFILE_DESTROYED, 194 chrome::NOTIFICATION_PROFILE_DESTROYED,
195 content::Source<Profile>(this), 195 content::Source<Profile>(this),
196 content::NotificationService::NoDetails()); 196 content::NotificationService::NoDetails());
197 } 197 }
198 } 198 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698