| 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/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 policy::ManagedModePolicyProvider* | 232 policy::ManagedModePolicyProvider* |
| 233 OffTheRecordProfileImpl::GetManagedModePolicyProvider() { | 233 OffTheRecordProfileImpl::GetManagedModePolicyProvider() { |
| 234 return profile_->GetManagedModePolicyProvider(); | 234 return profile_->GetManagedModePolicyProvider(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { | 237 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { |
| 238 return profile_->GetPolicyService(); | 238 return profile_->GetPolicyService(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 PrefService* OffTheRecordProfileImpl::GetPrefs() { | 241 PrefServiceSyncable* OffTheRecordProfileImpl::GetPrefs() { |
| 242 return prefs_; | 242 return prefs_; |
| 243 } | 243 } |
| 244 | 244 |
| 245 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { | 245 PrefServiceSyncable* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { |
| 246 return prefs_; | 246 return prefs_; |
| 247 } | 247 } |
| 248 | 248 |
| 249 DownloadManagerDelegate* OffTheRecordProfileImpl::GetDownloadManagerDelegate() { | 249 DownloadManagerDelegate* OffTheRecordProfileImpl::GetDownloadManagerDelegate() { |
| 250 return DownloadServiceFactory::GetForProfile(this)-> | 250 return DownloadServiceFactory::GetForProfile(this)-> |
| 251 GetDownloadManagerDelegate(); | 251 GetDownloadManagerDelegate(); |
| 252 } | 252 } |
| 253 | 253 |
| 254 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { | 254 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { |
| 255 return io_data_.GetMainRequestContextGetter(); | 255 return io_data_.GetMainRequestContextGetter(); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 if (!profile) | 478 if (!profile) |
| 479 profile = new OffTheRecordProfileImpl(this); | 479 profile = new OffTheRecordProfileImpl(this); |
| 480 profile->Init(); | 480 profile->Init(); |
| 481 return profile; | 481 return profile; |
| 482 } | 482 } |
| 483 | 483 |
| 484 base::Callback<ChromeURLDataManagerBackend*(void)> | 484 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 485 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 485 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 486 return io_data_.GetChromeURLDataManagerBackendGetter(); | 486 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 487 } | 487 } |
| OLD | NEW |