| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 registry->RegisterStringPref(prefs::kProfileName, | 351 registry->RegisterStringPref(prefs::kProfileName, |
| 352 std::string(), | 352 std::string(), |
| 353 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 353 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 354 registry->RegisterStringPref(prefs::kHomePage, | 354 registry->RegisterStringPref(prefs::kHomePage, |
| 355 std::string(), | 355 std::string(), |
| 356 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 356 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 357 #if defined(ENABLE_PRINTING) | 357 #if defined(ENABLE_PRINTING) |
| 358 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); | 358 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); |
| 359 #endif | 359 #endif |
| 360 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); | 360 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); |
| 361 registry->RegisterStringPref( |
| 362 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); |
| 361 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); | 363 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); |
| 362 | 364 |
| 363 // Initialize the cache prefs. | 365 // Initialize the cache prefs. |
| 364 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath()); | 366 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath()); |
| 365 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0); | 367 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0); |
| 366 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0); | 368 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0); |
| 367 } | 369 } |
| 368 | 370 |
| 369 ProfileImpl::ProfileImpl( | 371 ProfileImpl::ProfileImpl( |
| 370 const base::FilePath& path, | 372 const base::FilePath& path, |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1283 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1282 domain_reliability::DomainReliabilityService* service = | 1284 domain_reliability::DomainReliabilityService* service = |
| 1283 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1285 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1284 GetForBrowserContext(this); | 1286 GetForBrowserContext(this); |
| 1285 if (!service) | 1287 if (!service) |
| 1286 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1288 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1287 | 1289 |
| 1288 return service->CreateMonitor( | 1290 return service->CreateMonitor( |
| 1289 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1291 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1290 } | 1292 } |
| OLD | NEW |