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

Unified Diff: chrome/browser/about_flags.cc

Issue 1311963005: dbg Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch to an existing tab experiment Created 5 years 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/android/url_utilities.cc » ('j') | no next file with comments »
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 bdd2f7493461e71775cf59733e894a3dc26d0b7a..d5b840e50313d9f6b3517bff4093a727901ba958 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -509,6 +509,18 @@ const FeatureEntry::Choice kPpapiWin32kLockdown[] = {
};
#endif // defined(OS_WIN)
+#if defined(OS_ANDROID)
+const FeatureEntry::Choice kNtpSwitchToExistingTabChoices[] = {
+ {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
+ {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kNtpSwitchToExistingTab,
+ "disabled"},
+ {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_URL,
+ switches::kNtpSwitchToExistingTab, "url"},
+ {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_HOST,
+ switches::kNtpSwitchToExistingTab, "host"},
+};
+#endif // defined(OS_ANDROID)
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name. If you'd like to gather
@@ -1987,6 +1999,11 @@ const FeatureEntry kFeatureEntries[] = {
kOsAndroid,
ENABLE_DISABLE_VALUE_TYPE(switches::kEnableNTPPopularSites,
switches::kDisableNTPPopularSites)},
+ {"ntp-switch-to-existing-tab",
+ IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_NAME,
+ IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_DESCRIPTION,
+ kOsAndroid,
+ MULTI_VALUE_TYPE(kNtpSwitchToExistingTabChoices)},
{"use-android-midi-api",
IDS_FLAGS_USE_ANDROID_MIDI_API_NAME,
IDS_FLAGS_USE_ANDROID_MIDI_API_DESCRIPTION,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/android/url_utilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698