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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.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_settings.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
index 88aa3176d0f6ae6ec6f3c7122300840a353426b4..26fad478e18f7411bbebe146fa19f8d22395c8fa 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
@@ -30,6 +30,7 @@
#include "net/base/net_util.h"
#include "net/http/http_network_session.h"
#include "net/http/http_response_headers.h"
+#include "net/proxy/proxy_server.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_context_getter.h"
@@ -437,14 +438,14 @@ void DataReductionProxySettings::SetProxyConfigs(bool enabled,
if (alternative_enabled) {
configurator_->Enable(restricted,
!params()->alternative_fallback_allowed(),
- params()->alt_origin().spec(),
+ params()->alt_origin().ToURI(),
std::string(),
- params()->ssl_origin().spec());
+ params()->ssl_origin().ToURI());
} else {
configurator_->Enable(restricted,
!params()->fallback_allowed(),
- params()->origin().spec(),
- params()->fallback_origin().spec(),
+ params()->origin().ToURI(),
+ params()->fallback_origin().ToURI(),
std::string());
}
} else {

Powered by Google App Engine
This is Rietveld 408576698