| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 registry->RegisterBooleanPref( | 362 registry->RegisterBooleanPref( |
| 363 prefs::kProfileUsingDefaultName, | 363 prefs::kProfileUsingDefaultName, |
| 364 true, | 364 true, |
| 365 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 365 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 366 registry->RegisterStringPref(prefs::kProfileName, | 366 registry->RegisterStringPref(prefs::kProfileName, |
| 367 std::string(), | 367 std::string(), |
| 368 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 368 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 369 #endif | 369 #endif |
| 370 | 370 |
| 371 registry->RegisterStringPref(prefs::kSupervisedUserId, std::string()); | 371 registry->RegisterStringPref(prefs::kSupervisedUserId, std::string()); |
| 372 #if defined(OS_IOS) || defined(OS_ANDROID) |
| 373 uint32_t home_page_flags = PrefRegistry::NO_REGISTRATION_FLAGS; |
| 374 #else |
| 375 uint32_t home_page_flags = user_prefs::PrefRegistrySyncable::SYNCABLE_PREF; |
| 376 #endif |
| 372 registry->RegisterStringPref(prefs::kHomePage, | 377 registry->RegisterStringPref(prefs::kHomePage, |
| 373 std::string(), | 378 std::string(), |
| 374 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 379 home_page_flags); |
| 375 #if defined(ENABLE_PRINTING) | 380 #if defined(ENABLE_PRINTING) |
| 376 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); | 381 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); |
| 377 #endif | 382 #endif |
| 378 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); | 383 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); |
| 379 registry->RegisterStringPref( | 384 registry->RegisterStringPref( |
| 380 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); | 385 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); |
| 381 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); | 386 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); |
| 382 #if defined(ENABLE_MEDIA_ROUTER) | 387 #if defined(ENABLE_MEDIA_ROUTER) |
| 383 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true); | 388 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true); |
| 384 #endif | 389 #endif |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1282 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1278 domain_reliability::DomainReliabilityService* service = | 1283 domain_reliability::DomainReliabilityService* service = |
| 1279 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1284 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1280 GetForBrowserContext(this); | 1285 GetForBrowserContext(this); |
| 1281 if (!service) | 1286 if (!service) |
| 1282 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1287 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1283 | 1288 |
| 1284 return service->CreateMonitor( | 1289 return service->CreateMonitor( |
| 1285 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1290 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1286 } | 1291 } |
| OLD | NEW |