| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 registry->RegisterStringPref(prefs::kHomePage, | 370 registry->RegisterStringPref(prefs::kHomePage, |
| 371 std::string(), | 371 std::string(), |
| 372 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 372 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 373 #if defined(ENABLE_PRINTING) | 373 #if defined(ENABLE_PRINTING) |
| 374 registry->RegisterBooleanPref( | 374 registry->RegisterBooleanPref( |
| 375 prefs::kPrintingEnabled, | 375 prefs::kPrintingEnabled, |
| 376 true, | 376 true, |
| 377 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 377 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 378 #endif | 378 #endif |
| 379 registry->RegisterBooleanPref( | 379 registry->RegisterBooleanPref( |
| 380 prefs::kPrintPreviewDisabled, | |
| 381 false, | |
| 382 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
| 383 registry->RegisterBooleanPref( | |
| 384 prefs::kForceEphemeralProfiles, | 380 prefs::kForceEphemeralProfiles, |
| 385 false, | 381 false, |
| 386 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 382 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 387 | 383 |
| 388 // Initialize the cache prefs. | 384 // Initialize the cache prefs. |
| 389 registry->RegisterFilePathPref( | 385 registry->RegisterFilePathPref( |
| 390 prefs::kDiskCacheDir, | 386 prefs::kDiskCacheDir, |
| 391 base::FilePath(), | 387 base::FilePath(), |
| 392 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 388 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 393 registry->RegisterIntegerPref( | 389 registry->RegisterIntegerPref( |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1448 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1453 GetForBrowserContext(this); | 1449 GetForBrowserContext(this); |
| 1454 if (!service) | 1450 if (!service) |
| 1455 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1451 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1456 | 1452 |
| 1457 return service->CreateMonitor( | 1453 return service->CreateMonitor( |
| 1458 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 1454 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 1459 local_state, | 1455 local_state, |
| 1460 prefs::kMetricsReportingEnabled); | 1456 prefs::kMetricsReportingEnabled); |
| 1461 } | 1457 } |
| OLD | NEW |