Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 10795056: Remove last references to profile->GetHistory() and profile->GetBookmarkModel() (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 HistoryService* OffTheRecordProfileImpl::GetHistoryService(
223 ServiceAccessType sat) {
224 if (sat == EXPLICIT_ACCESS)
225 return profile_->GetHistoryService(sat);
226
227 NOTREACHED() << "This profile is OffTheRecord";
228 return NULL;
229 }
230
231 HistoryService* OffTheRecordProfileImpl::GetHistoryServiceWithoutCreating() {
232 return profile_->GetHistoryServiceWithoutCreating();
233 }
234
235 FaviconService* OffTheRecordProfileImpl::GetFaviconService( 222 FaviconService* OffTheRecordProfileImpl::GetFaviconService(
236 ServiceAccessType sat) { 223 ServiceAccessType sat) {
237 if (sat == EXPLICIT_ACCESS) 224 if (sat == EXPLICIT_ACCESS)
238 return profile_->GetFaviconService(sat); 225 return profile_->GetFaviconService(sat);
239 226
240 NOTREACHED() << "This profile is OffTheRecord"; 227 NOTREACHED() << "This profile is OffTheRecord";
241 return NULL; 228 return NULL;
242 } 229 }
243 230
244 policy::UserCloudPolicyManager* 231 policy::UserCloudPolicyManager*
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 330
344 bool OffTheRecordProfileImpl::DidLastSessionExitCleanly() { 331 bool OffTheRecordProfileImpl::DidLastSessionExitCleanly() {
345 return profile_->DidLastSessionExitCleanly(); 332 return profile_->DidLastSessionExitCleanly();
346 } 333 }
347 334
348 quota::SpecialStoragePolicy* 335 quota::SpecialStoragePolicy*
349 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { 336 OffTheRecordProfileImpl::GetSpecialStoragePolicy() {
350 return GetExtensionSpecialStoragePolicy(); 337 return GetExtensionSpecialStoragePolicy();
351 } 338 }
352 339
353 BookmarkModel* OffTheRecordProfileImpl::GetBookmarkModel() {
354 return profile_->GetBookmarkModel();
355 }
356
357 ProtocolHandlerRegistry* OffTheRecordProfileImpl::GetProtocolHandlerRegistry() { 340 ProtocolHandlerRegistry* OffTheRecordProfileImpl::GetProtocolHandlerRegistry() {
358 return profile_->GetProtocolHandlerRegistry(); 341 return profile_->GetProtocolHandlerRegistry();
359 } 342 }
360 343
361 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { 344 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) {
362 return (profile == this) || (profile == profile_); 345 return (profile == this) || (profile == profile_);
363 } 346 }
364 347
365 Time OffTheRecordProfileImpl::GetStartTime() const { 348 Time OffTheRecordProfileImpl::GetStartTime() const {
366 return start_time_; 349 return start_time_;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 if (!profile) 470 if (!profile)
488 profile = new OffTheRecordProfileImpl(this); 471 profile = new OffTheRecordProfileImpl(this);
489 profile->Init(); 472 profile->Init();
490 return profile; 473 return profile;
491 } 474 }
492 475
493 base::Callback<ChromeURLDataManagerBackend*(void)> 476 base::Callback<ChromeURLDataManagerBackend*(void)>
494 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 477 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
495 return io_data_.GetChromeURLDataManagerBackendGetter(); 478 return io_data_.GetChromeURLDataManagerBackendGetter();
496 } 479 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698