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

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

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra inclusion from testing_profile.h Created 5 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
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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 } 421 }
422 422
423 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { 423 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) {
424 return (profile == this) || (profile == profile_); 424 return (profile == this) || (profile == profile_);
425 } 425 }
426 426
427 Time OffTheRecordProfileImpl::GetStartTime() const { 427 Time OffTheRecordProfileImpl::GetStartTime() const {
428 return start_time_; 428 return start_time_;
429 } 429 }
430 430
431 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() {
432 return NULL;
433 }
434
435 history::TopSites* OffTheRecordProfileImpl::GetTopSites() {
436 return NULL;
437 }
438
439 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) { 431 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) {
440 } 432 }
441 433
442 base::FilePath OffTheRecordProfileImpl::last_selected_directory() { 434 base::FilePath OffTheRecordProfileImpl::last_selected_directory() {
443 const base::FilePath& directory = last_selected_directory_; 435 const base::FilePath& directory = last_selected_directory_;
444 if (directory.empty()) { 436 if (directory.empty()) {
445 return profile_->last_selected_directory(); 437 return profile_->last_selected_directory();
446 } 438 }
447 return directory; 439 return directory;
448 } 440 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 563 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
572 #if defined(OS_CHROMEOS) 564 #if defined(OS_CHROMEOS)
573 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 565 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
574 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 566 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
575 g_browser_process->local_state()); 567 g_browser_process->local_state());
576 } 568 }
577 #endif // defined(OS_CHROMEOS) 569 #endif // defined(OS_CHROMEOS)
578 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 570 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
579 GetPrefs(), g_browser_process->local_state()); 571 GetPrefs(), g_browser_process->local_state());
580 } 572 }
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