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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc

Issue 124793003: Data reduction proxy reconfigured on pref view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
index 206678e3a69fa5a667d998e153a3bd978330f4e7..65d1add2bad07293e0af0bf1044c4193ef9315b7 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
@@ -354,8 +354,10 @@ void DataReductionProxySettings::SetDataReductionProxyEnabled(bool enabled) {
if (!IsDataReductionProxyAllowed())
return;
- spdy_proxy_auth_enabled_.SetValue(enabled);
- OnProxyEnabledPrefChange();
+ if (spdy_proxy_auth_enabled_.GetValue() != enabled) {
+ spdy_proxy_auth_enabled_.SetValue(enabled);
+ OnProxyEnabledPrefChange();
+ }
}
int64 DataReductionProxySettings::GetDataReductionLastUpdateTime() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698