| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 if (!profile) | 468 if (!profile) |
| 478 profile = new OffTheRecordProfileImpl(this); | 469 profile = new OffTheRecordProfileImpl(this); |
| 479 profile->Init(); | 470 profile->Init(); |
| 480 return profile; | 471 return profile; |
| 481 } | 472 } |
| 482 | 473 |
| 483 base::Callback<ChromeURLDataManagerBackend*(void)> | 474 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 484 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 475 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 485 return io_data_.GetChromeURLDataManagerBackendGetter(); | 476 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 486 } | 477 } |
| OLD | NEW |