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

Unified Diff: content/browser/android/content_startup_flags.cc

Issue 1175703002: [Android] Conditionally enable M text selection features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 5 years, 6 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: content/browser/android/content_startup_flags.cc
diff --git a/content/browser/android/content_startup_flags.cc b/content/browser/android/content_startup_flags.cc
index 6ebe4e1b04938b3d824a292617eea13f60664f35..ebd585bcaf3426eb88dcbdcfffadaa9eed7d08b3 100644
--- a/content/browser/android/content_startup_flags.cc
+++ b/content/browser/android/content_startup_flags.cc
@@ -63,6 +63,14 @@ void SetContentCommandLineFlags(bool single_process,
parsed_command_line->AppendSwitch(switches::kEnableOverlayScrollbar);
parsed_command_line->AppendSwitch(switches::kValidateInputEventStream);
+ // TODO(jdduke): Use the proper SDK version when available, crbug.com/466749.
+ if (base::android::BuildInfo::GetInstance()->sdk_int() >
+ base::android::SDK_VERSION_LOLLIPOP_MR1) {
+ parsed_command_line->AppendSwitch(switches::kEnableLongpressDragSelection);
+ parsed_command_line->AppendSwitchASCII(
+ switches::kTouchTextSelectionStrategy, "direction");
+ }
+
// There is no software fallback on Android, so don't limit GPU crashes.
parsed_command_line->AppendSwitch(switches::kDisableGpuProcessCrashLimit);
« 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