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

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

Issue 863203009: Store Proxy Servers as proxy servers and not GURLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed failing test code. Created 5 years, 10 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 0fbd744faeea3d609014ad8e2274aa32618e2758..573a235e2e0e2a5c6f32070690a2dee0799a3168 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
@@ -4,6 +4,8 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
+#include <string>
+
#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"
#include "base/single_thread_task_runner.h"
@@ -12,6 +14,7 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "net/base/load_flags.h"
+#include "net/proxy/proxy_server.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_status.h"
@@ -92,12 +95,12 @@ void DataReductionProxyConfig::SetProxyConfigs(bool enabled,
if (alternative_enabled) {
configurator_->Enable(restricted,
!params()->alternative_fallback_allowed(),
- params()->alt_origin().spec(), std::string(),
- params()->ssl_origin().spec());
+ params()->alt_origin().ToURI(), std::string(),
+ params()->ssl_origin().ToURI());
} else {
configurator_->Enable(restricted, !params()->fallback_allowed(),
- params()->origin().spec(),
- params()->fallback_origin().spec(), std::string());
+ params()->origin().ToURI(),
+ params()->fallback_origin().ToURI(), std::string());
}
} else {
configurator_->Disable();

Powered by Google App Engine
This is Rietveld 408576698