Commit 5b2de217 authored by Li Lin's avatar Li Lin Committed by Commit Bot

Disable quick answers on edit mode.

Bug: 1098472
Test: manual test
Change-Id: Iffdfc41e4b408fc2c99112e3b27f20e196ade911
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261879Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Li Lin <llin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781936}
parent 815fc2fe
......@@ -102,8 +102,7 @@ void QuickAnswersMenuObserver::InitMenu(
if (!is_eligible_ || !proxy_ || !quick_answers_client_)
return;
if (params.input_field_type ==
blink::ContextMenuDataInputFieldType::kPassword)
if (params.is_editable)
return;
auto selected_text = base::UTF16ToUTF8(SanitizeText(params.selection_text));
......@@ -141,8 +140,7 @@ void QuickAnswersMenuObserver::OnContextMenuShown(
if (!quick_answers_controller_)
return;
if (params.input_field_type ==
blink::ContextMenuDataInputFieldType::kPassword)
if (params.is_editable)
return;
auto selected_text = base::UTF16ToUTF8(params.selection_text);
......
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