| 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/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 Loading... |
| 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 if (!path.empty()) | 1168 if (!path.empty()) |
| 1166 *cache_path = path; | 1169 *cache_path = path; |
| 1167 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1170 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
| 1168 prefs_->GetInteger(prefs::kDiskCacheSize); | 1171 prefs_->GetInteger(prefs::kDiskCacheSize); |
| 1169 } | 1172 } |
| 1170 | 1173 |
| 1171 base::Callback<ChromeURLDataManagerBackend*(void)> | 1174 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 1172 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 1175 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 1173 return io_data_.GetChromeURLDataManagerBackendGetter(); | 1176 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 1174 } | 1177 } |
| OLD | NEW |