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

Unified Diff: chrome/common/net/net_error_info.cc

Issue 23496028: Disable DNS probes on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 3 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/common/net/net_error_info.cc
diff --git a/chrome/common/net/net_error_info.cc b/chrome/common/net/net_error_info.cc
index dd67c7dd2169699c1825b60be7890b95a173c9ab..e02f1b4d92d8a5d551ee0070c8b536f1709ef9c9 100644
--- a/chrome/common/net/net_error_info.cc
+++ b/chrome/common/net/net_error_info.cc
@@ -40,6 +40,9 @@ bool DnsProbeStatusIsFinished(DnsProbeStatus status) {
}
bool DnsProbesEnabled() {
+#if defined(OS_ANDROID)
+ return false;
+#else
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kDisableDnsProbes))
@@ -52,6 +55,7 @@ bool DnsProbesEnabled() {
return base::FieldTrialList::FindFullName(kDnsProbeFieldTrialName) ==
kDnsProbeFieldTrialEnableGroupName;
+#endif // OS_ANDROID
}
} // namespace chrome_common_net
« 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