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

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

Issue 7863006: Add a whitelist for the new binary download protection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment to describe why we use list id 6 and not 5. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 PrefService::SYNCABLE_PREF); 118 PrefService::SYNCABLE_PREF);
119 prefs->RegisterBooleanPref(prefs::kSessionExitedCleanly, 119 prefs->RegisterBooleanPref(prefs::kSessionExitedCleanly,
120 true, 120 true,
121 PrefService::UNSYNCABLE_PREF); 121 PrefService::UNSYNCABLE_PREF);
122 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled, 122 prefs->RegisterBooleanPref(prefs::kSafeBrowsingEnabled,
123 true, 123 true,
124 PrefService::SYNCABLE_PREF); 124 PrefService::SYNCABLE_PREF);
125 prefs->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled, 125 prefs->RegisterBooleanPref(prefs::kSafeBrowsingReportingEnabled,
126 false, 126 false,
127 PrefService::UNSYNCABLE_PREF); 127 PrefService::UNSYNCABLE_PREF);
128 prefs->RegisterBooleanPref(prefs::kSafeBrowsingOptinDownloadProtectionEnabled,
129 false,
130 PrefService::UNSYNCABLE_PREF);
Brian Ryner 2011/09/12 21:45:18 Is there a reason this (and the ReportingEnabled p
noelutz 2011/09/12 22:09:30 I figured it should be similar to the malware repo
Brian Ryner 2011/09/12 22:43:27 Ok. I'm just wondering if this was a copy and pas
noelutz 2011/09/12 22:55:12 Done.
128 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string. 131 // TODO(estade): IDS_SPELLCHECK_DICTIONARY should be an ASCII string.
129 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary, 132 prefs->RegisterLocalizedStringPref(prefs::kSpellCheckDictionary,
130 IDS_SPELLCHECK_DICTIONARY, 133 IDS_SPELLCHECK_DICTIONARY,
131 PrefService::UNSYNCABLE_PREF); 134 PrefService::UNSYNCABLE_PREF);
132 prefs->RegisterBooleanPref(prefs::kSpellCheckUseSpellingService, 135 prefs->RegisterBooleanPref(prefs::kSpellCheckUseSpellingService,
133 #if defined(GOOGLE_CHROME_BUILD) 136 #if defined(GOOGLE_CHROME_BUILD)
134 true, 137 true,
135 #else 138 #else
136 false, 139 false,
137 #endif 140 #endif
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 return is_guest_session; 221 return is_guest_session;
219 #else 222 #else
220 return false; 223 return false;
221 #endif 224 #endif
222 } 225 }
223 226
224 bool Profile::IsSyncAccessible() { 227 bool Profile::IsSyncAccessible() {
225 ProfileSyncService* syncService = GetProfileSyncService(); 228 ProfileSyncService* syncService = GetProfileSyncService();
226 return syncService && !syncService->IsManaged(); 229 return syncService && !syncService->IsManaged();
227 } 230 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698