| 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/off_the_record_profile_impl.h" | 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 #endif | 239 #endif |
| 240 } | 240 } |
| 241 | 241 |
| 242 base::FilePath OffTheRecordProfileImpl::GetPath() const { | 242 base::FilePath OffTheRecordProfileImpl::GetPath() const { |
| 243 return profile_->GetPath(); | 243 return profile_->GetPath(); |
| 244 } | 244 } |
| 245 | 245 |
| 246 std::unique_ptr<content::ZoomLevelDelegate> | 246 std::unique_ptr<content::ZoomLevelDelegate> |
| 247 OffTheRecordProfileImpl::CreateZoomLevelDelegate( | 247 OffTheRecordProfileImpl::CreateZoomLevelDelegate( |
| 248 const base::FilePath& partition_path) { | 248 const base::FilePath& partition_path) { |
| 249 return base::WrapUnique(new ChromeZoomLevelOTRDelegate( | 249 return base::MakeUnique<ChromeZoomLevelOTRDelegate>( |
| 250 zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); | 250 zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr()); |
| 251 } | 251 } |
| 252 | 252 |
| 253 scoped_refptr<base::SequencedTaskRunner> | 253 scoped_refptr<base::SequencedTaskRunner> |
| 254 OffTheRecordProfileImpl::GetIOTaskRunner() { | 254 OffTheRecordProfileImpl::GetIOTaskRunner() { |
| 255 return profile_->GetIOTaskRunner(); | 255 return profile_->GetIOTaskRunner(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 bool OffTheRecordProfileImpl::IsOffTheRecord() const { | 258 bool OffTheRecordProfileImpl::IsOffTheRecord() const { |
| 259 return true; | 259 return true; |
| 260 } | 260 } |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 551 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
| 552 #if defined(OS_CHROMEOS) | 552 #if defined(OS_CHROMEOS) |
| 553 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 553 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 554 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 554 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 555 g_browser_process->local_state()); | 555 g_browser_process->local_state()); |
| 556 } | 556 } |
| 557 #endif // defined(OS_CHROMEOS) | 557 #endif // defined(OS_CHROMEOS) |
| 558 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 558 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 559 GetPrefs(), g_browser_process->local_state()); | 559 GetPrefs(), g_browser_process->local_state()); |
| 560 } | 560 } |
| OLD | NEW |