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

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: rebase 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) 2011 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"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
(...skipping 401 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 OffTheRecordProfileImpl* profile = NULL; 658 OffTheRecordProfileImpl* profile = NULL;
659 #if defined(OS_CHROMEOS) 659 #if defined(OS_CHROMEOS)
660 if (Profile::IsGuestSession()) 660 if (Profile::IsGuestSession())
661 profile = new GuestSessionProfile(this); 661 profile = new GuestSessionProfile(this);
662 #endif 662 #endif
663 if (!profile) 663 if (!profile)
664 profile = new OffTheRecordProfileImpl(this); 664 profile = new OffTheRecordProfileImpl(this);
665 profile->Init(); 665 profile->Init();
666 return profile; 666 return profile;
667 } 667 }
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