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

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

Issue 10535155: Hook the activeTab permission up to the omnibox, page action, and context menu APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/autocomplete_edit.cc
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc
index b313f35278172439986e85c5c3a6285d20a0dc71..b844e0a4e085492738a6b5cf5a3f27365b4eb4e4 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit.cc
@@ -568,7 +568,8 @@ void AutocompleteEditModel::OpenMatch(const AutocompleteMatch& match,
// Strip the keyword + leading space off the input.
size_t prefix_length = match.keyword.length() + 1;
- extensions::ExtensionOmniboxEventRouter::OnInputEntered(profile_,
+ extensions::ExtensionOmniboxEventRouter::OnInputEntered(
+ controller_->GetTabContents(),
template_url->GetExtensionId(),
UTF16ToUTF8(match.fill_into_edit.substr(prefix_length)));
view_->RevertAll();

Powered by Google App Engine
This is Rietveld 408576698