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

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

Issue 2203993002: Add a Physical Web omnibox autocomplete provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: almost done Created 4 years, 4 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: components/omnibox/browser/autocomplete_controller.cc
diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc
index 6000fcd2a60b1897af2949ba5960200a4eb808cf..4dc3b39b04d033a8c2944548ba20196a55f80603 100644
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -26,6 +26,7 @@
#include "components/omnibox/browser/history_url_provider.h"
#include "components/omnibox/browser/keyword_provider.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
+#include "components/omnibox/browser/physical_web_provider.h"
#include "components/omnibox/browser/search_provider.h"
#include "components/omnibox/browser/shortcuts_provider.h"
#include "components/omnibox/browser/zero_suggest_provider.h"
@@ -220,6 +221,12 @@ AutocompleteController::AutocompleteController(
clipboard_recent_content));
}
}
+ if (provider_types & AutocompleteProvider::TYPE_PHYSICAL_WEB) {
+ PhysicalWebProvider* physical_web_provider =
+ PhysicalWebProvider::Create(provider_client_.get());
+ if (physical_web_provider)
+ providers_.push_back(physical_web_provider);
+ }
}
AutocompleteController::~AutocompleteController() {

Powered by Google App Engine
This is Rietveld 408576698