| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 FaviconService* OffTheRecordProfileImpl::GetFaviconService( | 232 FaviconService* OffTheRecordProfileImpl::GetFaviconService( |
| 233 ServiceAccessType sat) { | 233 ServiceAccessType sat) { |
| 234 if (sat == EXPLICIT_ACCESS) | 234 if (sat == EXPLICIT_ACCESS) |
| 235 return profile_->GetFaviconService(sat); | 235 return profile_->GetFaviconService(sat); |
| 236 | 236 |
| 237 NOTREACHED() << "This profile is OffTheRecord"; | 237 NOTREACHED() << "This profile is OffTheRecord"; |
| 238 return NULL; | 238 return NULL; |
| 239 } | 239 } |
| 240 | 240 |
| 241 history::ShortcutsBackend* OffTheRecordProfileImpl::GetShortcutsBackend() { | |
| 242 return NULL; | |
| 243 } | |
| 244 | |
| 245 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { | 241 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { |
| 246 return profile_->GetPolicyService(); | 242 return profile_->GetPolicyService(); |
| 247 } | 243 } |
| 248 | 244 |
| 249 PrefService* OffTheRecordProfileImpl::GetPrefs() { | 245 PrefService* OffTheRecordProfileImpl::GetPrefs() { |
| 250 return prefs_; | 246 return prefs_; |
| 251 } | 247 } |
| 252 | 248 |
| 253 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { | 249 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { |
| 254 return prefs_; | 250 return prefs_; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 if (!profile) | 470 if (!profile) |
| 475 profile = new OffTheRecordProfileImpl(this); | 471 profile = new OffTheRecordProfileImpl(this); |
| 476 profile->Init(); | 472 profile->Init(); |
| 477 return profile; | 473 return profile; |
| 478 } | 474 } |
| 479 | 475 |
| 480 base::Callback<ChromeURLDataManagerBackend*(void)> | 476 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 481 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 477 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 482 return io_data_.GetChromeURLDataManagerBackendGetter(); | 478 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 483 } | 479 } |
| OLD | NEW |