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

Unified Diff: chrome/browser/notifications/notifier_state_tracker.h

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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/notifications/notifier_state_tracker.h
diff --git a/chrome/browser/notifications/notifier_state_tracker.h b/chrome/browser/notifications/notifier_state_tracker.h
index 984f96b1b76331f5a1a35a88f4a3737f276b9b12..0aa6df422c7c3d0491f4b3f8145778734505ff83 100644
--- a/chrome/browser/notifications/notifier_state_tracker.h
+++ b/chrome/browser/notifications/notifier_state_tracker.h
@@ -11,8 +11,9 @@
#include "base/macros.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/prefs/pref_member.h"
+#include "extensions/features/features.h"
-#if defined(ENABLE_EXTENSIONS)
+#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "base/scoped_observer.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_registry_observer.h"
@@ -30,7 +31,7 @@ class PrefRegistrySyncable;
// Tracks whether a given NotifierId can send notifications.
class NotifierStateTracker : public KeyedService
-#if defined(ENABLE_EXTENSIONS)
+#if BUILDFLAG(ENABLE_EXTENSIONS)
, public extensions::ExtensionRegistryObserver
#endif
{
@@ -53,7 +54,7 @@ class NotifierStateTracker : public KeyedService
void OnStringListPrefChanged(
const char* pref_name, std::set<std::string>* ids_field);
-#if defined(ENABLE_EXTENSIONS)
+#if BUILDFLAG(ENABLE_EXTENSIONS)
// Fires a permission-level change event when an extension notifier has had
// their notification permission changed.
void FirePermissionLevelChangedEvent(
@@ -81,7 +82,7 @@ class NotifierStateTracker : public KeyedService
// On-memory data for the availability of system_component.
std::set<std::string> disabled_system_component_ids_;
-#if defined(ENABLE_EXTENSIONS)
+#if BUILDFLAG(ENABLE_EXTENSIONS)
// An observer to listen when extension is uninstalled.
ScopedObserver<extensions::ExtensionRegistry,
extensions::ExtensionRegistryObserver>
« no previous file with comments | « chrome/browser/net/chrome_network_delegate_unittest.cc ('k') | chrome/browser/notifications/notifier_state_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698