| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |