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

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

Issue 229733004: Omnibox: Make Bookmarks Set Inline_Autocompletion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: massive new patch, new change description Created 6 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
Index: chrome/browser/autocomplete/builtin_provider.cc
diff --git a/chrome/browser/autocomplete/builtin_provider.cc b/chrome/browser/autocomplete/builtin_provider.cc
index 05202812d1809e33d3a9259260c7a3fdab398bb9..7e15b393ef44585136fb2998462cacbb709695fb 100644
--- a/chrome/browser/autocomplete/builtin_provider.cc
+++ b/chrome/browser/autocomplete/builtin_provider.cc
@@ -9,6 +9,7 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/autocomplete/autocomplete_input.h"
+#include "chrome/browser/autocomplete/history_provider.h"
#include "chrome/common/net/url_fixer_upper.h"
#include "chrome/common/url_constants.h"
@@ -119,7 +120,8 @@ void BuiltinProvider::Start(const AutocompleteInput& input,
for (size_t i = 0; i < matches_.size(); ++i)
matches_[i].relevance = kRelevance + matches_.size() - (i + 1);
- if (!input.prevent_inline_autocomplete() && (matches_.size() == 1)) {
+ if (!HistoryProvider::PreventInlineAutocomplete(input) &&
+ (matches_.size() == 1)) {
// If there's only one possible completion of the user's input and
// allowing completions is okay, give the match a high enough score to
// allow it to beat url-what-you-typed and be inlined.

Powered by Google App Engine
This is Rietveld 408576698