| 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 data_reduction_proxy_unavailable = | 653 data_reduction_proxy_unavailable = |
| 654 base::Bind( | 654 base::Bind( |
| 655 &data_reduction_proxy::DataReductionProxySettings::SetUnreachable, | 655 &data_reduction_proxy::DataReductionProxySettings::SetUnreachable, |
| 656 base::Unretained(data_reduction_proxy_chrome_settings)); | 656 base::Unretained(data_reduction_proxy_chrome_settings)); |
| 657 // The event_store is used by DataReductionProxyChromeSettings, configurator, | 657 // The event_store is used by DataReductionProxyChromeSettings, configurator, |
| 658 // and ProfileIOData. Ownership is passed to the latter via | 658 // and ProfileIOData. Ownership is passed to the latter via |
| 659 // ProfileIOData::Handle, which is only destroyed after | 659 // ProfileIOData::Handle, which is only destroyed after |
| 660 // BrowserContextKeyedServices, including DataReductionProxyChromeSettings | 660 // BrowserContextKeyedServices, including DataReductionProxyChromeSettings |
| 661 event_store.reset( | 661 event_store.reset( |
| 662 new data_reduction_proxy::DataReductionProxyEventStore( | 662 new data_reduction_proxy::DataReductionProxyEventStore( |
| 663 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); | 663 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI))); |
| 664 // The configurator is used by DataReductionProxyChromeSettings and | 664 // The configurator is used by DataReductionProxyChromeSettings and |
| 665 // ProfileIOData. Ownership is passed to the latter via ProfileIOData::Handle, | 665 // ProfileIOData. Ownership is passed to the latter via ProfileIOData::Handle, |
| 666 // which is only destroyed after BrowserContextKeyedServices, | 666 // which is only destroyed after BrowserContextKeyedServices, |
| 667 // including DataReductionProxyChromeSettings. | 667 // including DataReductionProxyChromeSettings. |
| 668 chrome_configurator.reset( | 668 chrome_configurator.reset( |
| 669 new DataReductionProxyChromeConfigurator( | 669 new DataReductionProxyChromeConfigurator( |
| 670 prefs_.get(), | 670 prefs_.get(), |
| 671 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 671 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 672 net_log, | 672 net_log, |
| 673 event_store.get())); | 673 event_store.get())); |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1416 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1416 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1417 domain_reliability::DomainReliabilityService* service = | 1417 domain_reliability::DomainReliabilityService* service = |
| 1418 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1418 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1419 GetForBrowserContext(this); | 1419 GetForBrowserContext(this); |
| 1420 if (!service) | 1420 if (!service) |
| 1421 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1421 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1422 | 1422 |
| 1423 return service->CreateMonitor( | 1423 return service->CreateMonitor( |
| 1424 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1424 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1425 } | 1425 } |
| OLD | NEW |