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

Unified Diff: chrome/browser/extensions/api/omnibox/omnibox_api.cc

Issue 425303002: Move extension notifications to extensions/browser/notification_types.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (extension-notifications) rebase Created 6 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/extensions/api/omnibox/omnibox_api.cc
diff --git a/chrome/browser/extensions/api/omnibox/omnibox_api.cc b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
index 4f573d55513fb195d6b2098a2042f6c87338fa41..5281e912e8aefd551ca8759e9c7bfc1bc492820e 100644
--- a/chrome/browser/extensions/api/omnibox/omnibox_api.cc
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
@@ -7,7 +7,6 @@
#include "base/lazy_instance.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
@@ -21,6 +20,7 @@
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_prefs_factory.h"
#include "extensions/browser/extension_registry.h"
+#include "extensions/browser/notification_types.h"
#include "ui/gfx/image/image.h"
namespace extensions {
@@ -159,7 +159,7 @@ void ExtensionOmniboxEventRouter::OnInputEntered(
->DispatchEventToExtension(extension_id, event.Pass());
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED,
+ extensions::NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED,
content::Source<Profile>(profile),
content::NotificationService::NoDetails());
}
@@ -282,7 +282,7 @@ bool OmniboxSendSuggestionsFunction::RunSync() {
EXTENSION_FUNCTION_VALIDATE(params);
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY,
+ extensions::NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY,
content::Source<Profile>(GetProfile()->GetOriginalProfile()),
content::Details<SendSuggestions::Params>(params.get()));
@@ -297,7 +297,7 @@ bool OmniboxSetDefaultSuggestionFunction::RunSync() {
if (SetOmniboxDefaultSuggestion(
GetProfile(), extension_id(), params->suggestion)) {
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED,
+ extensions::NOTIFICATION_EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED,
content::Source<Profile>(GetProfile()->GetOriginalProfile()),
content::NotificationService::NoDetails());
}

Powered by Google App Engine
This is Rietveld 408576698