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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 684223003: Data Reduction Proxy Interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update copyright year Created 5 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index b49d8075939e9c4bd950fb3b872d0f93d9e7a99b..9c808378f3cca78dac7cd27521eb735884103b60 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -61,6 +61,10 @@
#include "net/url_request/url_request_job_factory_impl.h"
#include "storage/browser/quota/special_storage_policy.h"
+#if defined(OS_ANDROID)
+#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h"
+#endif
+
namespace {
net::BackendType ChooseCacheBackendType() {
@@ -472,6 +476,16 @@ void ProfileImplIOData::InitializeInternal(
.get())));
data_reduction_proxy_usage_stats()->set_unavailable_callback(
data_reduction_proxy_unavailable_callback());
+#if defined(OS_ANDROID)
+ set_data_reduction_proxy_ui_service(
+ scoped_ptr<data_reduction_proxy::DataReductionProxyUIService>
+ (new data_reduction_proxy::DataReductionProxyUIService(
mmenke 2015/01/16 20:15:27 DataReductionProxyDebugUIService? Should make it
megjablon 2015/01/17 02:21:48 Done.
+ base::Bind(&data_reduction_proxy::DataReductionProxyConfigurator::
+ GetProxyConfigOnIOThread,
+ base::Unretained(data_reduction_proxy_configurator())),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))));
+#endif
// TODO(vadimt): Remove ScopedTracker below once crbug.com/436671 is fixed.
tracked_objects::ScopedTracker tracking_profile3(

Powered by Google App Engine
This is Rietveld 408576698