| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 ExtensionSpecialStoragePolicy* | 213 ExtensionSpecialStoragePolicy* |
| 214 OffTheRecordProfileImpl::GetExtensionSpecialStoragePolicy() { | 214 OffTheRecordProfileImpl::GetExtensionSpecialStoragePolicy() { |
| 215 return GetOriginalProfile()->GetExtensionSpecialStoragePolicy(); | 215 return GetOriginalProfile()->GetExtensionSpecialStoragePolicy(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 GAIAInfoUpdateService* OffTheRecordProfileImpl::GetGAIAInfoUpdateService() { | 218 GAIAInfoUpdateService* OffTheRecordProfileImpl::GetGAIAInfoUpdateService() { |
| 219 return NULL; | 219 return NULL; |
| 220 } | 220 } |
| 221 | 221 |
| 222 FaviconService* OffTheRecordProfileImpl::GetFaviconService( | |
| 223 ServiceAccessType sat) { | |
| 224 if (sat == EXPLICIT_ACCESS) | |
| 225 return profile_->GetFaviconService(sat); | |
| 226 | |
| 227 NOTREACHED() << "This profile is OffTheRecord"; | |
| 228 return NULL; | |
| 229 } | |
| 230 | |
| 231 policy::UserCloudPolicyManager* | 222 policy::UserCloudPolicyManager* |
| 232 OffTheRecordProfileImpl::GetUserCloudPolicyManager() { | 223 OffTheRecordProfileImpl::GetUserCloudPolicyManager() { |
| 233 return profile_->GetUserCloudPolicyManager(); | 224 return profile_->GetUserCloudPolicyManager(); |
| 234 } | 225 } |
| 235 | 226 |
| 236 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { | 227 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { |
| 237 return profile_->GetPolicyService(); | 228 return profile_->GetPolicyService(); |
| 238 } | 229 } |
| 239 | 230 |
| 240 PrefService* OffTheRecordProfileImpl::GetPrefs() { | 231 PrefService* OffTheRecordProfileImpl::GetPrefs() { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 if (!profile) | 461 if (!profile) |
| 471 profile = new OffTheRecordProfileImpl(this); | 462 profile = new OffTheRecordProfileImpl(this); |
| 472 profile->Init(); | 463 profile->Init(); |
| 473 return profile; | 464 return profile; |
| 474 } | 465 } |
| 475 | 466 |
| 476 base::Callback<ChromeURLDataManagerBackend*(void)> | 467 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 477 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 468 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 478 return io_data_.GetChromeURLDataManagerBackendGetter(); | 469 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 479 } | 470 } |
| OLD | NEW |