| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |