| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 #endif | 417 #endif |
| 418 } | 418 } |
| 419 return host_content_settings_map_.get(); | 419 return host_content_settings_map_.get(); |
| 420 } | 420 } |
| 421 | 421 |
| 422 content::GeolocationPermissionContext* | 422 content::GeolocationPermissionContext* |
| 423 OffTheRecordProfileImpl::GetGeolocationPermissionContext() { | 423 OffTheRecordProfileImpl::GetGeolocationPermissionContext() { |
| 424 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); | 424 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); |
| 425 } | 425 } |
| 426 | 426 |
| 427 content::BrowserPluginGuestManagerDelegate* | 427 content::BrowserPluginGuestManager* |
| 428 OffTheRecordProfileImpl::GetGuestManagerDelegate() { | 428 OffTheRecordProfileImpl::GetGuestManager() { |
| 429 return GuestViewManager::FromBrowserContext(this); | 429 return GuestViewManager::FromBrowserContext(this); |
| 430 } | 430 } |
| 431 | 431 |
| 432 quota::SpecialStoragePolicy* | 432 quota::SpecialStoragePolicy* |
| 433 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { | 433 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { |
| 434 return GetExtensionSpecialStoragePolicy(); | 434 return GetExtensionSpecialStoragePolicy(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { | 437 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { |
| 438 return (profile == this) || (profile == profile_); | 438 return (profile == this) || (profile == profile_); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 574 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
| 575 #if defined(OS_CHROMEOS) | 575 #if defined(OS_CHROMEOS) |
| 576 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 576 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 577 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 577 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 578 g_browser_process->local_state()); | 578 g_browser_process->local_state()); |
| 579 } | 579 } |
| 580 #endif // defined(OS_CHROMEOS) | 580 #endif // defined(OS_CHROMEOS) |
| 581 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 581 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 582 GetPrefs(), g_browser_process->local_state()); | 582 GetPrefs(), g_browser_process->local_state()); |
| 583 } | 583 } |
| OLD | NEW |