| 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 AppLocaleChangedVia) { | 415 AppLocaleChangedVia) { |
| 416 } | 416 } |
| 417 | 417 |
| 418 void OffTheRecordProfileImpl::OnLogin() { | 418 void OffTheRecordProfileImpl::OnLogin() { |
| 419 } | 419 } |
| 420 | 420 |
| 421 void OffTheRecordProfileImpl::InitChromeOSPreferences() { | 421 void OffTheRecordProfileImpl::InitChromeOSPreferences() { |
| 422 // The incognito profile shouldn't have Chrome OS's preferences. | 422 // The incognito profile shouldn't have Chrome OS's preferences. |
| 423 // The preferences are associated with the regular user profile. | 423 // The preferences are associated with the regular user profile. |
| 424 } | 424 } |
| 425 | |
| 426 bool OffTheRecordProfileImpl::IsLoginProfile() { | |
| 427 return false; | |
| 428 } | |
| 429 #endif // defined(OS_CHROMEOS) | 425 #endif // defined(OS_CHROMEOS) |
| 430 | 426 |
| 431 PrefProxyConfigTracker* OffTheRecordProfileImpl::GetProxyConfigTracker() { | 427 PrefProxyConfigTracker* OffTheRecordProfileImpl::GetProxyConfigTracker() { |
| 432 if (!pref_proxy_config_tracker_) | 428 if (!pref_proxy_config_tracker_) |
| 433 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); | 429 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); |
| 434 return pref_proxy_config_tracker_.get(); | 430 return pref_proxy_config_tracker_.get(); |
| 435 } | 431 } |
| 436 | 432 |
| 437 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() { | 433 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() { |
| 438 // We do not store information about websites visited in OTR profiles which | 434 // We do not store information about websites visited in OTR profiles which |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 505 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
| 510 #if defined(OS_CHROMEOS) | 506 #if defined(OS_CHROMEOS) |
| 511 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 507 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 512 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 508 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 513 g_browser_process->local_state()); | 509 g_browser_process->local_state()); |
| 514 } | 510 } |
| 515 #endif // defined(OS_CHROMEOS) | 511 #endif // defined(OS_CHROMEOS) |
| 516 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 512 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 517 GetPrefs(), g_browser_process->local_state()); | 513 GetPrefs(), g_browser_process->local_state()); |
| 518 } | 514 } |
| OLD | NEW |