Commit 9a6cbec6 authored by jdduke's avatar jdduke Committed by Commit bot

[Android] Disable smart selection by default

There are ongoing improvements to smart selection that likely will not
land before M44 branch. Disable it for now, avoiding the need to
cherry-pick any eventual updates.

BUG=451255

Review URL: https://codereview.chromium.org/1135313003

Cr-Commit-Position: refs/heads/master@{#329721}
parent 3d8ced8a
......@@ -755,22 +755,12 @@ void RenderViewImpl::Initialize(const ViewMsg_New_Params& params,
if (switches::IsTouchEditingEnabled())
webview()->settings()->setTouchEditingEnabled(true);
#if defined(OS_ANDROID)
WebSettings::SelectionStrategyType selection_strategy_default =
WebSettings::SelectionStrategyType::Direction;
#else
WebSettings::SelectionStrategyType selection_strategy_default =
WebSettings::SelectionStrategyType::Character;
#endif
WebSettings::SelectionStrategyType selection_strategy =
selection_strategy_default;
WebSettings::SelectionStrategyType::Character;
const std::string selection_strategy_str =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kTouchTextSelectionStrategy);
if (selection_strategy_str == "character")
selection_strategy = WebSettings::SelectionStrategyType::Character;
else if (selection_strategy_str == "direction")
if (selection_strategy_str == "direction")
selection_strategy = WebSettings::SelectionStrategyType::Direction;
webview()->settings()->setSelectionStrategy(selection_strategy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment