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

Unified Diff: chrome/browser/extensions/extension_omnibox_api.cc

Issue 5607003: Make chrome.omnibox.setDefaultSuggestion work when called inside (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 10 years 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 | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_omnibox_api.cc
diff --git a/chrome/browser/extensions/extension_omnibox_api.cc b/chrome/browser/extensions/extension_omnibox_api.cc
index ef97d225b6c81086f97e844c29a935fd391b20b9..84927885b85dc08869352e99409682ee26fd18ad 100644
--- a/chrome/browser/extensions/extension_omnibox_api.cc
+++ b/chrome/browser/extensions/extension_omnibox_api.cc
@@ -164,6 +164,11 @@ bool OmniboxSetDefaultSuggestionFunction::RunImpl() {
profile_->GetExtensionsService()->GetPropertyBag(GetExtension()),
suggestion);
+ NotificationService::current()->Notify(
+ NotificationType::EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED,
+ Source<Profile>(profile_),
+ NotificationService::NoDetails());
+
return true;
}
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698