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

Side by Side Diff: extensions/browser/extension_registry.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 unified diff | Download patch
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_system.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "components/keyed_service/core/keyed_service.h" 14 #include "components/keyed_service/core/keyed_service.h"
15 #include "extensions/browser/uninstall_reason.h" 15 #include "extensions/browser/uninstall_reason.h"
16 #include "extensions/common/extension_set.h" 16 #include "extensions/common/extension_set.h"
17 #include "extensions/features/features.h"
17 18
18 #if !defined(ENABLE_EXTENSIONS) 19 #if !BUILDFLAG(ENABLE_EXTENSIONS)
19 #error "Extensions must be enabled" 20 #error "Extensions must be enabled"
20 #endif 21 #endif
21 22
22 namespace content { 23 namespace content {
23 class BrowserContext; 24 class BrowserContext;
24 } 25 }
25 26
26 namespace extensions { 27 namespace extensions {
27 class Extension; 28 class Extension;
28 class ExtensionRegistryObserver; 29 class ExtensionRegistryObserver;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 base::ObserverList<ExtensionRegistryObserver> observers_; 196 base::ObserverList<ExtensionRegistryObserver> observers_;
196 197
197 content::BrowserContext* const browser_context_; 198 content::BrowserContext* const browser_context_;
198 199
199 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 200 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
200 }; 201 };
201 202
202 } // namespace extensions 203 } // namespace extensions
203 204
204 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 205 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698