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

Unified Diff: chrome/browser/autocomplete/extension_app_provider.cc

Issue 18878007: Omnibox: Make the Controller Reorder Matches for Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's comments Created 7 years, 5 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
Index: chrome/browser/autocomplete/extension_app_provider.cc
diff --git a/chrome/browser/autocomplete/extension_app_provider.cc b/chrome/browser/autocomplete/extension_app_provider.cc
index 003cdac26bf6ef755fe9782aff1cf380db81cb93..a42af50f85e13394d5a83c1777a752417267314d 100644
--- a/chrome/browser/autocomplete/extension_app_provider.cc
+++ b/chrome/browser/autocomplete/extension_app_provider.cc
@@ -80,6 +80,7 @@ AutocompleteMatch ExtensionAppProvider::CreateAutocompleteMatch(
app.should_match_against_launch_url ? app.launch_url : input.text();
match.destination_url = GURL(app.launch_url);
match.inline_autocomplete_offset = string16::npos;
+ match.allowed_to_be_default_match = true;
msw 2013/07/18 06:23:57 Why is this always true?
Mark P 2013/07/21 20:31:05 Until very recently (when we disabled extensions/a
msw 2013/07/23 21:55:32 I suppose this change itself is okay then, should
Mark P 2013/07/26 16:48:13 I'll add an appropriate reviewer and ask these que
msw 2013/07/26 20:04:49 I think now would be okay. Your general approach s
match.contents = AutocompleteMatch::SanitizeString(app.name);
AutocompleteMatch::ClassifyLocationInString(name_match_index,
input.text().length(), app.name.length(), ACMatchClassification::NONE,

Powered by Google App Engine
This is Rietveld 408576698