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

Unified Diff: chrome/browser/about_flags.cc

Issue 10828373: [net] Add AsyncDns field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable field trial for mobile devices Created 8 years, 4 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 | chrome/browser/io_thread.cc » ('j') | chrome/browser/net/async_dns_field_trial.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 51ef078848e1e09b5107011bafe218c162207d17..6e22fe80feea8eea90e5e16a629d14bfb3c876eb 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -148,6 +148,14 @@ const Experiment::Choice kPointerLockUIChoices[] = {
switches::kDisablePointerLock, ""}
};
+const Experiment::Choice kAsyncDnsChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
+ switches::kDisableAsyncDns, ""},
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
+ switches::kEnableAsyncDns, ""}
+};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
@@ -520,8 +528,8 @@ const Experiment kExperiments[] = {
"enable-async-dns",
IDS_FLAGS_ENABLE_ASYNC_DNS_NAME,
IDS_FLAGS_ENABLE_ASYNC_DNS_DESCRIPTION,
- kOsWin | kOsMac | kOsLinux | kOsCrOS,
- SINGLE_VALUE_TYPE(switches::kEnableAsyncDns)
+ kOsWin | kOsMac | kOsLinux,
+ MULTI_VALUE_TYPE(kAsyncDnsChoices)
},
{
"enable-video-track",
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/net/async_dns_field_trial.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698