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

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: fix Created 6 years 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 } 413 }
414 414
415 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { 415 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) {
416 return (profile == this) || (profile == profile_); 416 return (profile == this) || (profile == profile_);
417 } 417 }
418 418
419 Time OffTheRecordProfileImpl::GetStartTime() const { 419 Time OffTheRecordProfileImpl::GetStartTime() const {
420 return start_time_; 420 return start_time_;
421 } 421 }
422 422
423 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() {
424 return NULL;
425 }
426
427 history::TopSites* OffTheRecordProfileImpl::GetTopSites() {
428 return NULL;
429 }
430
431 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) { 423 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) {
432 } 424 }
433 425
434 base::FilePath OffTheRecordProfileImpl::last_selected_directory() { 426 base::FilePath OffTheRecordProfileImpl::last_selected_directory() {
435 const base::FilePath& directory = last_selected_directory_; 427 const base::FilePath& directory = last_selected_directory_;
436 if (directory.empty()) { 428 if (directory.empty()) {
437 return profile_->last_selected_directory(); 429 return profile_->last_selected_directory();
438 } 430 }
439 return directory; 431 return directory;
440 } 432 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 549 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
558 #if defined(OS_CHROMEOS) 550 #if defined(OS_CHROMEOS)
559 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 551 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
560 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 552 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
561 g_browser_process->local_state()); 553 g_browser_process->local_state());
562 } 554 }
563 #endif // defined(OS_CHROMEOS) 555 #endif // defined(OS_CHROMEOS)
564 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 556 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
565 GetPrefs(), g_browser_process->local_state()); 557 GetPrefs(), g_browser_process->local_state());
566 } 558 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698