| 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_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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 int ProfileImpl::create_readme_delay_ms = 60000; | 262 int ProfileImpl::create_readme_delay_ms = 60000; |
| 263 | 263 |
| 264 // static | 264 // static |
| 265 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; | 265 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; |
| 266 | 266 |
| 267 // static | 267 // static |
| 268 void ProfileImpl::RegisterUserPrefs(PrefService* prefs) { | 268 void ProfileImpl::RegisterUserPrefs(PrefService* prefs) { |
| 269 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, | 269 prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, |
| 270 false, | 270 false, |
| 271 PrefService::UNSYNCABLE_PREF); | 271 PrefService::UNSYNCABLE_PREF); |
| 272 prefs->RegisterBooleanPref(prefs::kForceSafeSearch, |
| 273 false, |
| 274 PrefService::UNSYNCABLE_PREF); |
| 272 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex, | 275 prefs->RegisterIntegerPref(prefs::kProfileAvatarIndex, |
| 273 -1, | 276 -1, |
| 274 PrefService::SYNCABLE_PREF); | 277 PrefService::SYNCABLE_PREF); |
| 275 prefs->RegisterStringPref(prefs::kProfileName, | 278 prefs->RegisterStringPref(prefs::kProfileName, |
| 276 "", | 279 "", |
| 277 PrefService::SYNCABLE_PREF); | 280 PrefService::SYNCABLE_PREF); |
| 278 prefs->RegisterStringPref(prefs::kHomePage, | 281 prefs->RegisterStringPref(prefs::kHomePage, |
| 279 std::string(), | 282 std::string(), |
| 280 PrefService::SYNCABLE_PREF); | 283 PrefService::SYNCABLE_PREF); |
| 281 #if defined(ENABLE_PRINTING) | 284 #if defined(ENABLE_PRINTING) |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 if (!path.empty()) | 1145 if (!path.empty()) |
| 1143 *cache_path = path; | 1146 *cache_path = path; |
| 1144 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1147 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
| 1145 prefs_->GetInteger(prefs::kDiskCacheSize); | 1148 prefs_->GetInteger(prefs::kDiskCacheSize); |
| 1146 } | 1149 } |
| 1147 | 1150 |
| 1148 base::Callback<ChromeURLDataManagerBackend*(void)> | 1151 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 1149 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 1152 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 1150 return io_data_.GetChromeURLDataManagerBackendGetter(); | 1153 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 1151 } | 1154 } |
| OLD | NEW |