| 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::UNSYNCABLE_PREF); | 76 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 77 registry->RegisterStringPref( | 77 registry->RegisterStringPref( |
| 78 prefs::kSessionExitType, | 78 prefs::kSessionExitType, |
| 79 std::string(), | 79 std::string(), |
| 80 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 80 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 81 registry->RegisterBooleanPref( | 81 registry->RegisterBooleanPref( |
| 82 prefs::kSafeBrowsingEnabled, | 82 prefs::kSafeBrowsingEnabled, |
| 83 true, | 83 true, |
| 84 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 84 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 85 registry->RegisterIntegerPref( | 85 registry->RegisterBooleanPref( |
| 86 prefs::kSafeBrowsingDownloadReportingEnabled, | 86 prefs::kSafeBrowsingDownloadFeedbackEnabled, |
| 87 0, | 87 false, |
| 88 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 88 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 89 registry->RegisterBooleanPref( | 89 registry->RegisterBooleanPref( |
| 90 prefs::kSafeBrowsingReportingEnabled, | 90 prefs::kSafeBrowsingReportingEnabled, |
| 91 false, | 91 false, |
| 92 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 92 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 93 registry->RegisterBooleanPref( | 93 registry->RegisterBooleanPref( |
| 94 prefs::kSafeBrowsingProceedAnywayDisabled, | 94 prefs::kSafeBrowsingProceedAnywayDisabled, |
| 95 false, | 95 false, |
| 96 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 96 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 97 #if defined(ENABLE_GOOGLE_NOW) | 97 #if defined(ENABLE_GOOGLE_NOW) |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 void Profile::MaybeSendDestroyedNotification() { | 211 void Profile::MaybeSendDestroyedNotification() { |
| 212 if (!sent_destroyed_notification_) { | 212 if (!sent_destroyed_notification_) { |
| 213 sent_destroyed_notification_ = true; | 213 sent_destroyed_notification_ = true; |
| 214 content::NotificationService::current()->Notify( | 214 content::NotificationService::current()->Notify( |
| 215 chrome::NOTIFICATION_PROFILE_DESTROYED, | 215 chrome::NOTIFICATION_PROFILE_DESTROYED, |
| 216 content::Source<Profile>(this), | 216 content::Source<Profile>(this), |
| 217 content::NotificationService::NoDetails()); | 217 content::NotificationService::NoDetails()); |
| 218 } | 218 } |
| 219 } | 219 } |
| OLD | NEW |