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

Unified Diff: chrome/browser/about_flags.cc

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/compositor/scene_layer/scene_layer.h » ('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 f8e446ee4e35889a8643c6a3271ced92561ed173..9aae17964417887b0232d3a9fd2c7facb6206c75 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -180,6 +180,16 @@ const Experiment::Choice kOverscrollHistoryNavigationChoices[] = {
};
#endif
+const Experiment::Choice kTouchTextSelectionStrategyChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_TOUCH_SELECTION_STRATEGY_CHARACTER,
+ switches::kTouchTextSelectionStrategy,
+ "character" },
+ { IDS_TOUCH_SELECTION_STRATEGY_DIRECTION,
+ switches::kTouchTextSelectionStrategy,
+ "direction" }
+};
+
#if !defined(DISABLE_NACL)
const Experiment::Choice kNaClDebugMaskChoices[] = {
// Secure shell can be used on ChromeOS for forwarding the TCP port opened by
@@ -1219,6 +1229,13 @@ const Experiment kExperiments[] = {
switches::kDisableTouchEditing)
},
{
+ "touch-selection-strategy",
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_NAME,
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_DESCRIPTION,
+ kOsAndroid, // TODO(mfomitchev): Add CrOS/Win/Linux support soon.
+ MULTI_VALUE_TYPE(kTouchTextSelectionStrategyChoices)
+ },
+ {
"enable-stale-while-revalidate",
IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_NAME,
IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_DESCRIPTION,
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/compositor/scene_layer/scene_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698