Commit 08e7385d authored by Gang Wu's avatar Gang Wu Committed by Commit Bot

[Omnibox] Clipboard image suggestion should be able to be deleted

Bug: 1090156
Change-Id: I149875e07cbac11a0edb475cc58a006c7dea9c3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2226336Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Gang Wu <gangwu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774323}
parent 2e41be0f
...@@ -395,7 +395,7 @@ void ClipboardProvider::ConstructImageMatchCallback( ...@@ -395,7 +395,7 @@ void ClipboardProvider::ConstructImageMatchCallback(
const TemplateURL* default_url = url_service->GetDefaultSearchProvider(); const TemplateURL* default_url = url_service->GetDefaultSearchProvider();
DCHECK(default_url); DCHECK(default_url);
// Add the clipboard match. The relevance is 800 to beat ZeroSuggest results. // Add the clipboard match. The relevance is 800 to beat ZeroSuggest results.
AutocompleteMatch match(this, 800, false, AutocompleteMatch match(this, 800, IsMatchDeletionEnabled(),
AutocompleteMatchType::CLIPBOARD_IMAGE); AutocompleteMatchType::CLIPBOARD_IMAGE);
match.description.assign(l10n_util::GetStringUTF16(IDS_IMAGE_FROM_CLIPBOARD)); match.description.assign(l10n_util::GetStringUTF16(IDS_IMAGE_FROM_CLIPBOARD));
......
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