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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 } | 310 } |
311 } else { | 311 } else { |
312 NOTREACHED(); | 312 NOTREACHED(); |
313 } | 313 } |
314 | 314 |
315 return new ProfileImpl( | 315 return new ProfileImpl( |
316 path, delegate, create_mode, sequenced_task_runner.get()); | 316 path, delegate, create_mode, sequenced_task_runner.get()); |
317 } | 317 } |
318 | 318 |
319 // static | 319 // static |
320 const char* const ProfileImpl::kPrefExitTypeNormal = "Normal"; | 320 const char ProfileImpl::kPrefExitTypeNormal[] = "Normal"; |
321 | 321 |
322 // static | 322 // static |
323 void ProfileImpl::RegisterProfilePrefs( | 323 void ProfileImpl::RegisterProfilePrefs( |
324 user_prefs::PrefRegistrySyncable* registry) { | 324 user_prefs::PrefRegistrySyncable* registry) { |
325 registry->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, false); | 325 registry->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, false); |
326 registry->RegisterBooleanPref(prefs::kAllowDeletingBrowserHistory, true); | 326 registry->RegisterBooleanPref(prefs::kAllowDeletingBrowserHistory, true); |
327 registry->RegisterBooleanPref(prefs::kForceGoogleSafeSearch, false); | 327 registry->RegisterBooleanPref(prefs::kForceGoogleSafeSearch, false); |
328 registry->RegisterBooleanPref(prefs::kForceYouTubeSafetyMode, false); | 328 registry->RegisterBooleanPref(prefs::kForceYouTubeSafetyMode, false); |
329 registry->RegisterBooleanPref(prefs::kRecordHistory, false); | 329 registry->RegisterBooleanPref(prefs::kRecordHistory, false); |
330 registry->RegisterIntegerPref( | 330 registry->RegisterIntegerPref( |
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1282 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
1283 domain_reliability::DomainReliabilityService* service = | 1283 domain_reliability::DomainReliabilityService* service = |
1284 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1284 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
1285 GetForBrowserContext(this); | 1285 GetForBrowserContext(this); |
1286 if (!service) | 1286 if (!service) |
1287 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1287 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1288 | 1288 |
1289 return service->CreateMonitor( | 1289 return service->CreateMonitor( |
1290 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1290 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
1291 } | 1291 } |
OLD | NEW |