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

Unified Diff: chrome/browser/autocomplete/shortcuts_backend.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/autocomplete/shortcuts_backend.cc
diff --git a/chrome/browser/autocomplete/shortcuts_backend.cc b/chrome/browser/autocomplete/shortcuts_backend.cc
index 5acfc9f877203e0d480f15cf96db54e4bc3a5767..50d3b63e726eaef1bbec692e22fd7d6233703133 100644
--- a/chrome/browser/autocomplete/shortcuts_backend.cc
+++ b/chrome/browser/autocomplete/shortcuts_backend.cc
@@ -30,6 +30,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
+#include "extensions/browser/notification_types.h"
#include "extensions/common/extension.h"
using content::BrowserThread;
@@ -83,7 +84,8 @@ ShortcutsBackend::ShortcutsBackend(Profile* profile, bool suppress_db)
// |profile| can be NULL in tests.
if (profile) {
notification_registrar_.Add(
- this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
+ this,
+ extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
content::Source<Profile>(profile));
notification_registrar_.Add(
this, chrome::NOTIFICATION_HISTORY_URLS_DELETED,
@@ -175,7 +177,7 @@ void ShortcutsBackend::Observe(int type,
if (!initialized())
return;
- if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) {
+ if (type == extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) {
// When an extension is unloaded, we want to remove any Shortcuts associated
// with it.
DeleteShortcutsWithURL(content::Details<extensions::UnloadedExtensionInfo>(

Powered by Google App Engine
This is Rietveld 408576698