Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 775773002: Add data reduction proxy debug info to net-internals#bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr CR updates Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | chrome/browser/resources/net_internals/bandwidth_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698