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

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: Fine grain parameter match + more tests. Created 8 years, 2 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) 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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 int ProfileImpl::create_readme_delay_ms = 60000; 233 int ProfileImpl::create_readme_delay_ms = 60000;
234 234
235 // static 235 // static
236 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; 236 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal";
237 237
238 // static 238 // static
239 void ProfileImpl::RegisterUserPrefs(PrefService* prefs) { 239 void ProfileImpl::RegisterUserPrefs(PrefService* prefs) {
240 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, 240 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled,
241 false, 241 false,
242 PrefService::UNSYNCABLE_PREF); 242 PrefService::UNSYNCABLE_PREF);
243 prefs->RegisterBooleanPref(prefs::kForceSafeSearch,
244 false,
245 PrefService::UNSYNCABLE_PREF);
243 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex, 246 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex,
244 -1, 247 -1,
245 PrefService::SYNCABLE_PREF); 248 PrefService::SYNCABLE_PREF);
246 prefs->RegisterStringPref(prefs::kProfileName, 249 prefs->RegisterStringPref(prefs::kProfileName,
247 "", 250 "",
248 PrefService::SYNCABLE_PREF); 251 PrefService::SYNCABLE_PREF);
249 prefs->RegisterStringPref(prefs::kHomePage, 252 prefs->RegisterStringPref(prefs::kHomePage,
250 std::string(), 253 std::string(),
251 PrefService::SYNCABLE_PREF); 254 PrefService::SYNCABLE_PREF);
252 #if defined(ENABLE_PRINTING) 255 #if defined(ENABLE_PRINTING)
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 if (!path.empty()) 1144 if (!path.empty())
1142 *cache_path = path; 1145 *cache_path = path;
1143 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1146 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1144 prefs_->GetInteger(prefs::kDiskCacheSize); 1147 prefs_->GetInteger(prefs::kDiskCacheSize);
1145 } 1148 }
1146 1149
1147 base::Callback<ChromeURLDataManagerBackend*(void)> 1150 base::Callback<ChromeURLDataManagerBackend*(void)>
1148 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1151 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1149 return io_data_.GetChromeURLDataManagerBackendGetter(); 1152 return io_data_.GetChromeURLDataManagerBackendGetter();
1150 } 1153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698