| OLD | NEW |
| 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 Loading... |
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 548 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
| 557 #if defined(OS_CHROMEOS) | 549 #if defined(OS_CHROMEOS) |
| 558 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 550 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 559 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 551 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 560 g_browser_process->local_state()); | 552 g_browser_process->local_state()); |
| 561 } | 553 } |
| 562 #endif // defined(OS_CHROMEOS) | 554 #endif // defined(OS_CHROMEOS) |
| 563 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 555 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 564 GetPrefs(), g_browser_process->local_state()); | 556 GetPrefs(), g_browser_process->local_state()); |
| 565 } | 557 } |
| OLD | NEW |