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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 235 |
236 policy::ManagedModePolicyProvider* | 236 policy::ManagedModePolicyProvider* |
237 OffTheRecordProfileImpl::GetManagedModePolicyProvider() { | 237 OffTheRecordProfileImpl::GetManagedModePolicyProvider() { |
238 return profile_->GetManagedModePolicyProvider(); | 238 return profile_->GetManagedModePolicyProvider(); |
239 } | 239 } |
240 | 240 |
241 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { | 241 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { |
242 return profile_->GetPolicyService(); | 242 return profile_->GetPolicyService(); |
243 } | 243 } |
244 | 244 |
245 PrefService* OffTheRecordProfileImpl::GetPrefs() { | 245 PrefServiceSyncable* OffTheRecordProfileImpl::GetPrefs() { |
246 return prefs_; | 246 return prefs_; |
247 } | 247 } |
248 | 248 |
249 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { | 249 PrefServiceSyncable* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { |
250 return prefs_; | 250 return prefs_; |
251 } | 251 } |
252 | 252 |
253 DownloadManagerDelegate* OffTheRecordProfileImpl::GetDownloadManagerDelegate() { | 253 DownloadManagerDelegate* OffTheRecordProfileImpl::GetDownloadManagerDelegate() { |
254 return DownloadServiceFactory::GetForProfile(this)-> | 254 return DownloadServiceFactory::GetForProfile(this)-> |
255 GetDownloadManagerDelegate(); | 255 GetDownloadManagerDelegate(); |
256 } | 256 } |
257 | 257 |
258 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { | 258 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { |
259 return io_data_.GetMainRequestContextGetter(); | 259 return io_data_.GetMainRequestContextGetter(); |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 if (!profile) | 482 if (!profile) |
483 profile = new OffTheRecordProfileImpl(this); | 483 profile = new OffTheRecordProfileImpl(this); |
484 profile->Init(); | 484 profile->Init(); |
485 return profile; | 485 return profile; |
486 } | 486 } |
487 | 487 |
488 base::Callback<ChromeURLDataManagerBackend*(void)> | 488 base::Callback<ChromeURLDataManagerBackend*(void)> |
489 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 489 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
490 return io_data_.GetChromeURLDataManagerBackendGetter(); | 490 return io_data_.GetChromeURLDataManagerBackendGetter(); |
491 } | 491 } |
OLD | NEW |