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