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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
485 AppLocaleChangedVia) { | 485 AppLocaleChangedVia) { |
486 } | 486 } |
487 | 487 |
488 void OffTheRecordProfileImpl::OnLogin() { | 488 void OffTheRecordProfileImpl::OnLogin() { |
489 } | 489 } |
490 | 490 |
491 void OffTheRecordProfileImpl::InitChromeOSPreferences() { | 491 void OffTheRecordProfileImpl::InitChromeOSPreferences() { |
492 // The incognito profile shouldn't have Chrome OS's preferences. | 492 // The incognito profile shouldn't have Chrome OS's preferences. |
493 // The preferences are associated with the regular user profile. | 493 // The preferences are associated with the regular user profile. |
494 } | 494 } |
495 | |
496 void OffTheRecordProfileImpl::SetOnPrefsLoadedHook( | |
497 const base::Callback<void(Profile*, const base::Closure&)>& /* callback*/) { | |
robliao
2015/04/13 17:32:30
Nit: Space after the k in callback.
Alexander Alekseev
2015/04/14 14:20:44
Done.
| |
498 } | |
499 | |
495 #endif // defined(OS_CHROMEOS) | 500 #endif // defined(OS_CHROMEOS) |
496 | 501 |
497 PrefProxyConfigTracker* OffTheRecordProfileImpl::GetProxyConfigTracker() { | 502 PrefProxyConfigTracker* OffTheRecordProfileImpl::GetProxyConfigTracker() { |
498 if (!pref_proxy_config_tracker_) | 503 if (!pref_proxy_config_tracker_) |
499 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); | 504 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); |
500 return pref_proxy_config_tracker_.get(); | 505 return pref_proxy_config_tracker_.get(); |
501 } | 506 } |
502 | 507 |
503 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() { | 508 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() { |
504 // We do not store information about websites visited in OTR profiles which | 509 // We do not store information about websites visited in OTR profiles which |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
592 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 597 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
593 #if defined(OS_CHROMEOS) | 598 #if defined(OS_CHROMEOS) |
594 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 599 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
595 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 600 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
596 g_browser_process->local_state()); | 601 g_browser_process->local_state()); |
597 } | 602 } |
598 #endif // defined(OS_CHROMEOS) | 603 #endif // defined(OS_CHROMEOS) |
599 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 604 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
600 GetPrefs(), g_browser_process->local_state()); | 605 GetPrefs(), g_browser_process->local_state()); |
601 } | 606 } |
OLD | NEW |