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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 FaviconService* OffTheRecordProfileImpl::GetFaviconService( | 235 FaviconService* OffTheRecordProfileImpl::GetFaviconService( |
236 ServiceAccessType sat) { | 236 ServiceAccessType sat) { |
237 if (sat == EXPLICIT_ACCESS) | 237 if (sat == EXPLICIT_ACCESS) |
238 return profile_->GetFaviconService(sat); | 238 return profile_->GetFaviconService(sat); |
239 | 239 |
240 NOTREACHED() << "This profile is OffTheRecord"; | 240 NOTREACHED() << "This profile is OffTheRecord"; |
241 return NULL; | 241 return NULL; |
242 } | 242 } |
243 | 243 |
| 244 policy::UserCloudPolicyManager* |
| 245 OffTheRecordProfileImpl::GetUserCloudPolicyManager() { |
| 246 return profile_->GetUserCloudPolicyManager(); |
| 247 } |
| 248 |
244 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { | 249 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { |
245 return profile_->GetPolicyService(); | 250 return profile_->GetPolicyService(); |
246 } | 251 } |
247 | 252 |
248 PrefService* OffTheRecordProfileImpl::GetPrefs() { | 253 PrefService* OffTheRecordProfileImpl::GetPrefs() { |
249 return prefs_; | 254 return prefs_; |
250 } | 255 } |
251 | 256 |
252 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { | 257 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { |
253 return prefs_; | 258 return prefs_; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 if (!profile) | 487 if (!profile) |
483 profile = new OffTheRecordProfileImpl(this); | 488 profile = new OffTheRecordProfileImpl(this); |
484 profile->Init(); | 489 profile->Init(); |
485 return profile; | 490 return profile; |
486 } | 491 } |
487 | 492 |
488 base::Callback<ChromeURLDataManagerBackend*(void)> | 493 base::Callback<ChromeURLDataManagerBackend*(void)> |
489 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 494 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
490 return io_data_.GetChromeURLDataManagerBackendGetter(); | 495 return io_data_.GetChromeURLDataManagerBackendGetter(); |
491 } | 496 } |
OLD | NEW |