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

Side by Side Diff: chrome/browser/extensions/extension_service.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 16 matching lines...) Expand all
27 #include "content/public/browser/notification_registrar.h" 27 #include "content/public/browser/notification_registrar.h"
28 #include "extensions/browser/crx_file_info.h" 28 #include "extensions/browser/crx_file_info.h"
29 #include "extensions/browser/extension_prefs.h" 29 #include "extensions/browser/extension_prefs.h"
30 #include "extensions/browser/external_provider_interface.h" 30 #include "extensions/browser/external_provider_interface.h"
31 #include "extensions/browser/install_flag.h" 31 #include "extensions/browser/install_flag.h"
32 #include "extensions/browser/process_manager.h" 32 #include "extensions/browser/process_manager.h"
33 #include "extensions/browser/uninstall_reason.h" 33 #include "extensions/browser/uninstall_reason.h"
34 #include "extensions/common/extension.h" 34 #include "extensions/common/extension.h"
35 #include "extensions/common/extension_set.h" 35 #include "extensions/common/extension_set.h"
36 #include "extensions/common/manifest.h" 36 #include "extensions/common/manifest.h"
37 #include "extensions/features/features.h"
37 38
38 #if !defined(ENABLE_EXTENSIONS) 39 #if !BUILDFLAG(ENABLE_EXTENSIONS)
39 #error "Extensions must be enabled" 40 #error "Extensions must be enabled"
40 #endif 41 #endif
41 42
42 class GURL; 43 class GURL;
43 class HostContentSettingsMap; 44 class HostContentSettingsMap;
44 class Profile; 45 class Profile;
45 46
46 namespace base { 47 namespace base {
47 class CommandLine; 48 class CommandLine;
48 class SequencedTaskRunner; 49 class SequencedTaskRunner;
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 GreylistUnknownDontChange); 757 GreylistUnknownDontChange);
757 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 758 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
758 ManagementPolicyProhibitsEnableOnInstalled); 759 ManagementPolicyProhibitsEnableOnInstalled);
759 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 760 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
760 BlockAndUnblockBlacklistedExtension); 761 BlockAndUnblockBlacklistedExtension);
761 762
762 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 763 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
763 }; 764 };
764 765
765 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 766 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/geolocation/geolocation_permission_context_extensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698