| 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 | 724 |
| 725 return std::string(); | 725 return std::string(); |
| 726 } | 726 } |
| 727 | 727 |
| 728 Profile::ProfileType ProfileImpl::GetProfileType() const { | 728 Profile::ProfileType ProfileImpl::GetProfileType() const { |
| 729 return REGULAR_PROFILE; | 729 return REGULAR_PROFILE; |
| 730 } | 730 } |
| 731 | 731 |
| 732 std::unique_ptr<content::ZoomLevelDelegate> | 732 std::unique_ptr<content::ZoomLevelDelegate> |
| 733 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) { | 733 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) { |
| 734 return base::WrapUnique(new ChromeZoomLevelPrefs( | 734 return base::MakeUnique<ChromeZoomLevelPrefs>( |
| 735 GetPrefs(), GetPath(), partition_path, | 735 GetPrefs(), GetPath(), partition_path, |
| 736 zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); | 736 zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr()); |
| 737 } | 737 } |
| 738 | 738 |
| 739 base::FilePath ProfileImpl::GetPath() const { | 739 base::FilePath ProfileImpl::GetPath() const { |
| 740 return path_; | 740 return path_; |
| 741 } | 741 } |
| 742 | 742 |
| 743 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() { | 743 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() { |
| 744 return JsonPrefStore::GetTaskRunnerForFile( | 744 return JsonPrefStore::GetTaskRunnerForFile( |
| 745 GetPath(), BrowserThread::GetBlockingPool()); | 745 GetPath(), BrowserThread::GetBlockingPool()); |
| 746 } | 746 } |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1271 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1272 domain_reliability::DomainReliabilityService* service = | 1272 domain_reliability::DomainReliabilityService* service = |
| 1273 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1273 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1274 GetForBrowserContext(this); | 1274 GetForBrowserContext(this); |
| 1275 if (!service) | 1275 if (!service) |
| 1276 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1276 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1277 | 1277 |
| 1278 return service->CreateMonitor( | 1278 return service->CreateMonitor( |
| 1279 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); | 1279 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); |
| 1280 } | 1280 } |
| OLD | NEW |