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

Unified Diff: extensions/browser/notification_types.h

Issue 645043003: Cleanup: Prevent usage of various extension headers when extensions support is not compiled in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « extensions/browser/extension_system.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/notification_types.h
diff --git a/extensions/browser/notification_types.h b/extensions/browser/notification_types.h
index d0b2c56caad833426630ed12bb6604761fa53f04..6eee02e235b6e2f82c7c6d55c34b8e8498cb18f0 100644
--- a/extensions/browser/notification_types.h
+++ b/extensions/browser/notification_types.h
@@ -7,12 +7,17 @@
#include "content/public/browser/notification_types.h"
+#if !defined(ENABLE_EXTENSIONS)
+#error "Extensions must be enabled"
+#endif
+
namespace extensions {
// Only notifications fired by the extensions module should be here. The
// extensions module should not listen to notifications fired by the
// embedder.
enum NotificationType {
+ // WARNING: This need to match chrome/browser/chrome_notification_types.h.
NOTIFICATION_EXTENSIONS_START = content::NOTIFICATION_CONTENT_END,
// Sent when a CrxInstaller finishes. Source is the CrxInstaller that
« no previous file with comments | « extensions/browser/extension_system.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698