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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc

Issue 2063683002: Migrate components/data_reduction_proxy to Mojo interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eliminate usage of RPH observer Created 4 years, 4 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
index e3f345d5b6ffa239dad17d9b841f84ac2b9ec625..a175885e03a2d3631530da44de07fb2fd389e20f 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
@@ -325,6 +325,10 @@ void DataReductionProxyConfig::InitializeOnIOThread(const scoped_refptr<
base::TimeDelta::FromSeconds(60));
}
+base::WeakPtr<DataReductionProxyConfig> DataReductionProxyConfig::GetWeakPtr() {
+ return weak_factory_.GetWeakPtr();
+}
+
void DataReductionProxyConfig::ReloadConfig() {
DCHECK(thread_checker_.CalledOnValidThread());
UpdateConfigurator(enabled_by_user_, secure_proxy_allowed_);

Powered by Google App Engine
This is Rietveld 408576698