| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 registry->RegisterStringPref(prefs::kProfileName, | 348 registry->RegisterStringPref(prefs::kProfileName, |
| 349 std::string(), | 349 std::string(), |
| 350 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 350 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 351 registry->RegisterStringPref(prefs::kHomePage, | 351 registry->RegisterStringPref(prefs::kHomePage, |
| 352 std::string(), | 352 std::string(), |
| 353 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 353 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 354 #if defined(ENABLE_PRINTING) | 354 #if defined(ENABLE_PRINTING) |
| 355 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); | 355 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); |
| 356 #endif | 356 #endif |
| 357 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); | 357 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); |
| 358 registry->RegisterStringPref( |
| 359 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); |
| 358 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); | 360 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); |
| 359 | 361 |
| 360 // Initialize the cache prefs. | 362 // Initialize the cache prefs. |
| 361 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath()); | 363 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath()); |
| 362 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0); | 364 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0); |
| 363 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0); | 365 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0); |
| 364 } | 366 } |
| 365 | 367 |
| 366 ProfileImpl::ProfileImpl( | 368 ProfileImpl::ProfileImpl( |
| 367 const base::FilePath& path, | 369 const base::FilePath& path, |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1276 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1275 domain_reliability::DomainReliabilityService* service = | 1277 domain_reliability::DomainReliabilityService* service = |
| 1276 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1278 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1277 GetForBrowserContext(this); | 1279 GetForBrowserContext(this); |
| 1278 if (!service) | 1280 if (!service) |
| 1279 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1281 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1280 | 1282 |
| 1281 return service->CreateMonitor( | 1283 return service->CreateMonitor( |
| 1282 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1284 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1283 } | 1285 } |
| OLD | NEW |