Skip to content

Commit

Permalink
Use default verbatim relevance in ClipboardURLProvider.
Browse files Browse the repository at this point in the history
VerbatimMatchForURL() only uses the default verbatim relevance if
|verbatim_relevance| is negative, so pass -1 instead of 0 for the
|verbatim_relevance|.

BUG=517017

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

Cr-Commit-Position: refs/heads/master@{#343171}
  • Loading branch information
sdefresne authored and Commit bot committed Aug 13, 2015
1 parent 533c27b commit 0dea3c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/omnibox/browser/clipboard_url_provider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void ClipboardURLProvider::Start(const AutocompleteInput& input,
DCHECK(url.is_valid());
// Adds a default match. This match will be opened when the user presses "Go".
AutocompleteMatch verbatim_match = VerbatimMatchForURL(
client_, input.text(), input.current_page_classification(), 0);
client_, input.text(), input.current_page_classification(), -1);
if (verbatim_match.destination_url.is_valid())
matches_.push_back(verbatim_match);

Expand Down
2 changes: 1 addition & 1 deletion components/omnibox/browser/verbatim_match.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AutocompleteProviderClient;

// Returns a verbatim match for |input_text| with |classification| and a
// relevance of |verbatim_relevance|. If |verbatim_relevance| is negative
// or null, then a default value is used.
// then a default value is used.
AutocompleteMatch VerbatimMatchForURL(
AutocompleteProviderClient* client,
const base::string16& input_text,
Expand Down

0 comments on commit 0dea3c1

Please sign in to comment.