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

Unified Diff: components/omnibox/browser/autocomplete_match.cc

Issue 1877833002: Optimize shortcuts provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on master and minor format fix Created 4 years, 8 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 | « components/omnibox/browser/BUILD.gn ('k') | components/omnibox/browser/autocomplete_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/autocomplete_match.cc
diff --git a/components/omnibox/browser/autocomplete_match.cc b/components/omnibox/browser/autocomplete_match.cc
index a92186efc9f4c57e68bcb56f9a4dea246df23542..3867976ecfd08bcbc6b049cc8f734f60559ab71e 100644
--- a/components/omnibox/browser/autocomplete_match.cc
+++ b/components/omnibox/browser/autocomplete_match.cc
@@ -270,10 +270,8 @@ bool AutocompleteMatch::MoreRelevant(const AutocompleteMatch& elem1,
// static
bool AutocompleteMatch::DestinationsEqual(const AutocompleteMatch& elem1,
const AutocompleteMatch& elem2) {
- if (elem1.stripped_destination_url.is_empty() &&
- elem2.stripped_destination_url.is_empty())
- return false;
- return elem1.stripped_destination_url == elem2.stripped_destination_url;
+ return !elem1.stripped_destination_url.is_empty() &&
+ (elem1.stripped_destination_url == elem2.stripped_destination_url);
}
// static
« no previous file with comments | « components/omnibox/browser/BUILD.gn ('k') | components/omnibox/browser/autocomplete_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698