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

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

Issue 9232011: sync: Make ProfileSyncService a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init Created 8 years, 11 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 UserStyleSheetWatcher* OffTheRecordProfileImpl::GetUserStyleSheetWatcher() { 413 UserStyleSheetWatcher* OffTheRecordProfileImpl::GetUserStyleSheetWatcher() {
414 return profile_->GetUserStyleSheetWatcher(); 414 return profile_->GetUserStyleSheetWatcher();
415 } 415 }
416 416
417 FindBarState* OffTheRecordProfileImpl::GetFindBarState() { 417 FindBarState* OffTheRecordProfileImpl::GetFindBarState() {
418 if (!find_bar_state_.get()) 418 if (!find_bar_state_.get())
419 find_bar_state_.reset(new FindBarState()); 419 find_bar_state_.reset(new FindBarState());
420 return find_bar_state_.get(); 420 return find_bar_state_.get();
421 } 421 }
422 422
423 bool OffTheRecordProfileImpl::HasProfileSyncService() const { 423 bool OffTheRecordProfileImpl::HasProfileSyncService() {
424 // We never have a profile sync service. 424 // We never have a profile sync service.
425 return false; 425 return false;
426 } 426 }
427 427
428 bool OffTheRecordProfileImpl::DidLastSessionExitCleanly() { 428 bool OffTheRecordProfileImpl::DidLastSessionExitCleanly() {
429 return profile_->DidLastSessionExitCleanly(); 429 return profile_->DidLastSessionExitCleanly();
430 } 430 }
431 431
432 BookmarkModel* OffTheRecordProfileImpl::GetBookmarkModel() { 432 BookmarkModel* OffTheRecordProfileImpl::GetBookmarkModel() {
433 return profile_->GetBookmarkModel(); 433 return profile_->GetBookmarkModel();
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 OffTheRecordProfileImpl* profile = NULL; 662 OffTheRecordProfileImpl* profile = NULL;
663 #if defined(OS_CHROMEOS) 663 #if defined(OS_CHROMEOS)
664 if (Profile::IsGuestSession()) 664 if (Profile::IsGuestSession())
665 profile = new GuestSessionProfile(this); 665 profile = new GuestSessionProfile(this);
666 #endif 666 #endif
667 if (!profile) 667 if (!profile)
668 profile = new OffTheRecordProfileImpl(this); 668 profile = new OffTheRecordProfileImpl(this);
669 profile->Init(); 669 profile->Init();
670 return profile; 670 return profile;
671 } 671 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698