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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 true, | 69 true, |
70 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 70 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
71 registry->RegisterStringPref( | 71 registry->RegisterStringPref( |
72 prefs::kSessionExitType, | 72 prefs::kSessionExitType, |
73 std::string(), | 73 std::string(), |
74 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 74 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
75 registry->RegisterBooleanPref( | 75 registry->RegisterBooleanPref( |
76 prefs::kSafeBrowsingEnabled, | 76 prefs::kSafeBrowsingEnabled, |
77 true, | 77 true, |
78 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 78 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
79 registry->RegisterIntegerPref( | 79 registry->RegisterBooleanPref( |
80 prefs::kSafeBrowsingDownloadReportingEnabled, | 80 prefs::kSafeBrowsingDownloadFeedbackEnabled, |
81 0, | 81 false, |
82 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 82 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
83 registry->RegisterBooleanPref( | 83 registry->RegisterBooleanPref( |
84 prefs::kSafeBrowsingReportingEnabled, | 84 prefs::kSafeBrowsingReportingEnabled, |
85 false, | 85 false, |
86 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 86 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
87 registry->RegisterBooleanPref( | 87 registry->RegisterBooleanPref( |
88 prefs::kSafeBrowsingProceedAnywayDisabled, | 88 prefs::kSafeBrowsingProceedAnywayDisabled, |
89 false, | 89 false, |
90 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 90 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
91 #if defined(ENABLE_GOOGLE_NOW) | 91 #if defined(ENABLE_GOOGLE_NOW) |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 void Profile::MaybeSendDestroyedNotification() { | 205 void Profile::MaybeSendDestroyedNotification() { |
206 if (!sent_destroyed_notification_) { | 206 if (!sent_destroyed_notification_) { |
207 sent_destroyed_notification_ = true; | 207 sent_destroyed_notification_ = true; |
208 content::NotificationService::current()->Notify( | 208 content::NotificationService::current()->Notify( |
209 chrome::NOTIFICATION_PROFILE_DESTROYED, | 209 chrome::NOTIFICATION_PROFILE_DESTROYED, |
210 content::Source<Profile>(this), | 210 content::Source<Profile>(this), |
211 content::NotificationService::NoDetails()); | 211 content::NotificationService::NoDetails()); |
212 } | 212 } |
213 } | 213 } |
OLD | NEW |