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

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

Issue 11186002: Add a SafeSearch preference, policy and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor improvement and bugfix. Created 8 years, 1 month 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) 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_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 int ProfileImpl::create_readme_delay_ms = 60000; 224 int ProfileImpl::create_readme_delay_ms = 60000;
225 225
226 // static 226 // static
227 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; 227 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal";
228 228
229 // static 229 // static
230 void ProfileImpl::RegisterUserPrefs(PrefService* prefs) { 230 void ProfileImpl::RegisterUserPrefs(PrefService* prefs) {
231 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, 231 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled,
232 false, 232 false,
233 PrefService::UNSYNCABLE_PREF); 233 PrefService::UNSYNCABLE_PREF);
234 prefs->RegisterBooleanPref(prefs::kForceSafeSearch,
235 false,
236 PrefService::UNSYNCABLE_PREF);
234 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex, 237 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex,
235 -1, 238 -1,
236 PrefService::SYNCABLE_PREF); 239 PrefService::SYNCABLE_PREF);
237 prefs->RegisterStringPref(prefs::kProfileName, 240 prefs->RegisterStringPref(prefs::kProfileName,
238 "", 241 "",
239 PrefService::SYNCABLE_PREF); 242 PrefService::SYNCABLE_PREF);
240 prefs->RegisterStringPref(prefs::kHomePage, 243 prefs->RegisterStringPref(prefs::kHomePage,
241 std::string(), 244 std::string(),
242 PrefService::SYNCABLE_PREF); 245 PrefService::SYNCABLE_PREF);
243 #if defined(ENABLE_PRINTING) 246 #if defined(ENABLE_PRINTING)
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 if (!path.empty()) 1116 if (!path.empty())
1114 *cache_path = path; 1117 *cache_path = path;
1115 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1118 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1116 prefs_->GetInteger(prefs::kDiskCacheSize); 1119 prefs_->GetInteger(prefs::kDiskCacheSize);
1117 } 1120 }
1118 1121
1119 base::Callback<ChromeURLDataManagerBackend*(void)> 1122 base::Callback<ChromeURLDataManagerBackend*(void)>
1120 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1123 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1121 return io_data_.GetChromeURLDataManagerBackendGetter(); 1124 return io_data_.GetChromeURLDataManagerBackendGetter();
1122 } 1125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698