| 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/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 PrefProxyConfigTracker* ProfileImpl::GetProxyConfigTracker() { | 1234 PrefProxyConfigTracker* ProfileImpl::GetProxyConfigTracker() { |
| 1235 if (!pref_proxy_config_tracker_) | 1235 if (!pref_proxy_config_tracker_) |
| 1236 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); | 1236 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); |
| 1237 return pref_proxy_config_tracker_.get(); | 1237 return pref_proxy_config_tracker_.get(); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 chrome_browser_net::Predictor* ProfileImpl::GetNetworkPredictor() { | 1240 chrome_browser_net::Predictor* ProfileImpl::GetNetworkPredictor() { |
| 1241 return predictor_; | 1241 return predictor_; |
| 1242 } | 1242 } |
| 1243 | 1243 |
| 1244 DevToolsNetworkController* ProfileImpl::GetDevToolsNetworkController() { |
| 1245 return io_data_.GetDevToolsNetworkController(); |
| 1246 } |
| 1247 |
| 1244 void ProfileImpl::ClearNetworkingHistorySince( | 1248 void ProfileImpl::ClearNetworkingHistorySince( |
| 1245 base::Time time, | 1249 base::Time time, |
| 1246 const base::Closure& completion) { | 1250 const base::Closure& completion) { |
| 1247 io_data_.ClearNetworkingHistorySince(time, completion); | 1251 io_data_.ClearNetworkingHistorySince(time, completion); |
| 1248 } | 1252 } |
| 1249 | 1253 |
| 1250 void ProfileImpl::ClearDomainReliabilityMonitor( | 1254 void ProfileImpl::ClearDomainReliabilityMonitor( |
| 1251 domain_reliability::DomainReliabilityClearMode mode, | 1255 domain_reliability::DomainReliabilityClearMode mode, |
| 1252 const base::Closure& completion) { | 1256 const base::Closure& completion) { |
| 1253 io_data_.ClearDomainReliabilityMonitor(mode, completion); | 1257 io_data_.ClearDomainReliabilityMonitor(mode, completion); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { | 1359 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { |
| 1356 #if defined(OS_CHROMEOS) | 1360 #if defined(OS_CHROMEOS) |
| 1357 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 1361 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 1358 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 1362 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 1359 g_browser_process->local_state()); | 1363 g_browser_process->local_state()); |
| 1360 } | 1364 } |
| 1361 #endif // defined(OS_CHROMEOS) | 1365 #endif // defined(OS_CHROMEOS) |
| 1362 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 1366 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 1363 GetPrefs(), g_browser_process->local_state()); | 1367 GetPrefs(), g_browser_process->local_state()); |
| 1364 } | 1368 } |
| OLD | NEW |