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