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

Unified Diff: net/proxy/proxy_service.cc

Issue 10206014: Upstream Android proxy config service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Ryan's comments Created 8 years, 7 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: net/proxy/proxy_service.cc
diff --git a/net/proxy/proxy_service.cc b/net/proxy/proxy_service.cc
index 1c9203348ae908a1bcf36862bf4fd443b85011cb..588bcfa818a692922c790eadc36676a932ae528a 100644
--- a/net/proxy/proxy_service.cc
+++ b/net/proxy/proxy_service.cc
@@ -40,6 +40,8 @@
#include "net/proxy/proxy_resolver_mac.h"
#elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
#include "net/proxy/proxy_config_service_linux.h"
+#elif defined(OS_ANDROID)
+#include "net/proxy/proxy_config_service_android.h"
#endif
using base::TimeDelta;
@@ -1451,6 +1453,10 @@ ProxyConfigService* ProxyService::CreateSystemProxyConfigService(
static_cast<MessageLoopForIO*>(file_loop));
return linux_config_service;
+#elif defined(OS_ANDROID)
+ return new ProxyConfigServiceAndroid(
+ io_loop->message_loop_proxy(),
+ MessageLoopForUI::current()->message_loop_proxy());
#else
LOG(WARNING) << "Failed to choose a system proxy settings fetcher "
"for this platform.";

Powered by Google App Engine
This is Rietveld 408576698