| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 true, | 75 true, |
| 76 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 76 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 77 registry->RegisterBooleanPref( | 77 registry->RegisterBooleanPref( |
| 78 prefs::kSafeBrowsingReportingEnabled, | 78 prefs::kSafeBrowsingReportingEnabled, |
| 79 false, | 79 false, |
| 80 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 80 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 81 registry->RegisterBooleanPref( | 81 registry->RegisterBooleanPref( |
| 82 prefs::kSafeBrowsingProceedAnywayDisabled, | 82 prefs::kSafeBrowsingProceedAnywayDisabled, |
| 83 false, | 83 false, |
| 84 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 84 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 85 #if defined(ENABLE_GOOGLE_NOW) |
| 86 registry->RegisterBooleanPref( |
| 87 prefs::kGoogleGeolocationAccessEnabled, |
| 88 false, |
| 89 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 90 #endif |
| 85 registry->RegisterBooleanPref( | 91 registry->RegisterBooleanPref( |
| 86 prefs::kDisableExtensions, | 92 prefs::kDisableExtensions, |
| 87 false, | 93 false, |
| 88 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 94 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 89 registry->RegisterBooleanPref( | 95 registry->RegisterBooleanPref( |
| 90 prefs::kExtensionAlertsInitializedPref, | 96 prefs::kExtensionAlertsInitializedPref, |
| 91 false, | 97 false, |
| 92 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 98 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 93 registry->RegisterStringPref( | 99 registry->RegisterStringPref( |
| 94 prefs::kSelectFileLastDirectory, | 100 prefs::kSelectFileLastDirectory, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 189 |
| 184 void Profile::MaybeSendDestroyedNotification() { | 190 void Profile::MaybeSendDestroyedNotification() { |
| 185 if (!sent_destroyed_notification_) { | 191 if (!sent_destroyed_notification_) { |
| 186 sent_destroyed_notification_ = true; | 192 sent_destroyed_notification_ = true; |
| 187 content::NotificationService::current()->Notify( | 193 content::NotificationService::current()->Notify( |
| 188 chrome::NOTIFICATION_PROFILE_DESTROYED, | 194 chrome::NOTIFICATION_PROFILE_DESTROYED, |
| 189 content::Source<Profile>(this), | 195 content::Source<Profile>(this), |
| 190 content::NotificationService::NoDetails()); | 196 content::NotificationService::NoDetails()); |
| 191 } | 197 } |
| 192 } | 198 } |
| OLD | NEW |