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

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

Powered by Google App Engine
This is Rietveld 408576698