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

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

Issue 512083002: Deprecate old Safe Browsing reporting opt-ins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unneeded variable Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page.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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 registry->RegisterBooleanPref( 99 registry->RegisterBooleanPref(
100 prefs::kSafeBrowsingEnabled, 100 prefs::kSafeBrowsingEnabled,
101 true, 101 true,
102 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 102 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
103 #endif 103 #endif
104 registry->RegisterBooleanPref( 104 registry->RegisterBooleanPref(
105 prefs::kSafeBrowsingExtendedReportingEnabled, 105 prefs::kSafeBrowsingExtendedReportingEnabled,
106 false, 106 false,
107 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 107 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
108 registry->RegisterBooleanPref( 108 registry->RegisterBooleanPref(
109 prefs::kSafeBrowsingDownloadFeedbackEnabled,
110 false,
111 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
112 registry->RegisterBooleanPref(
113 prefs::kSafeBrowsingReportingEnabled,
114 false,
115 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
116 registry->RegisterBooleanPref(
117 prefs::kSafeBrowsingProceedAnywayDisabled, 109 prefs::kSafeBrowsingProceedAnywayDisabled,
118 false, 110 false,
119 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 111 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
120 registry->RegisterBooleanPref( 112 registry->RegisterBooleanPref(
121 prefs::kSafeBrowsingIncidentReportSent, 113 prefs::kSafeBrowsingIncidentReportSent,
122 false, 114 false,
123 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 115 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
124 registry->RegisterDictionaryPref( 116 registry->RegisterDictionaryPref(
125 prefs::kSafeBrowsingIncidentsSent, 117 prefs::kSafeBrowsingIncidentsSent,
126 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 118 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 content::NotificationService::NoDetails()); 243 content::NotificationService::NoDetails());
252 } 244 }
253 } 245 }
254 246
255 bool ProfileCompare::operator()(Profile* a, Profile* b) const { 247 bool ProfileCompare::operator()(Profile* a, Profile* b) const {
256 DCHECK(a && b); 248 DCHECK(a && b);
257 if (a->IsSameProfile(b)) 249 if (a->IsSameProfile(b))
258 return false; 250 return false;
259 return a->GetOriginalProfile() < b->GetOriginalProfile(); 251 return a->GetOriginalProfile() < b->GetOriginalProfile();
260 } 252 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698