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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 } | 293 } |
294 | 294 |
295 return new ProfileImpl( | 295 return new ProfileImpl( |
296 path, delegate, create_mode, sequenced_task_runner.get()); | 296 path, delegate, create_mode, sequenced_task_runner.get()); |
297 } | 297 } |
298 | 298 |
299 // static | 299 // static |
300 int ProfileImpl::create_readme_delay_ms = 60000; | 300 int ProfileImpl::create_readme_delay_ms = 60000; |
301 | 301 |
302 // static | 302 // static |
303 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; | 303 const char ProfileImpl::kPrefExitTypeNormal[] = "Normal"; |
304 | 304 |
305 // static | 305 // static |
306 void ProfileImpl::RegisterProfilePrefs( | 306 void ProfileImpl::RegisterProfilePrefs( |
307 user_prefs::PrefRegistrySyncable* registry) { | 307 user_prefs::PrefRegistrySyncable* registry) { |
308 registry->RegisterBooleanPref( | 308 registry->RegisterBooleanPref( |
309 prefs::kSavingBrowserHistoryDisabled, | 309 prefs::kSavingBrowserHistoryDisabled, |
310 false, | 310 false, |
311 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 311 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
312 registry->RegisterBooleanPref( | 312 registry->RegisterBooleanPref( |
313 prefs::kAllowDeletingBrowserHistory, | 313 prefs::kAllowDeletingBrowserHistory, |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1323 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
1324 domain_reliability::DomainReliabilityService* service = | 1324 domain_reliability::DomainReliabilityService* service = |
1325 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1325 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
1326 GetForBrowserContext(this); | 1326 GetForBrowserContext(this); |
1327 if (!service) | 1327 if (!service) |
1328 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1328 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1329 | 1329 |
1330 return service->CreateMonitor( | 1330 return service->CreateMonitor( |
1331 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1331 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
1332 } | 1332 } |
OLD | NEW |