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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 671873004: Migrates legacy packaged app data when it's upgraded to a platform app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses review comments Created 6 years 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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class CommandLine; 44 class CommandLine;
45 class SequencedTaskRunner; 45 class SequencedTaskRunner;
46 class Version; 46 class Version;
47 } 47 }
48 48
49 namespace content { 49 namespace content {
50 class DevToolsAgentHost; 50 class DevToolsAgentHost;
51 } 51 }
52 52
53 namespace extensions { 53 namespace extensions {
54 class AppDataMigrator;
54 class ComponentLoader; 55 class ComponentLoader;
55 class CrxInstaller; 56 class CrxInstaller;
56 class ExtensionActionStorageManager; 57 class ExtensionActionStorageManager;
57 class ExtensionDownloader; 58 class ExtensionDownloader;
58 class ExtensionDownloaderDelegate; 59 class ExtensionDownloaderDelegate;
59 class ExtensionErrorController; 60 class ExtensionErrorController;
60 class ExtensionRegistry; 61 class ExtensionRegistry;
61 class ExtensionSystem; 62 class ExtensionSystem;
62 class ExtensionUpdater; 63 class ExtensionUpdater;
63 class OneShotEvent; 64 class OneShotEvent;
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 scoped_ptr<extensions::ExtensionActionStorageManager> 726 scoped_ptr<extensions::ExtensionActionStorageManager>
726 extension_action_storage_manager_; 727 extension_action_storage_manager_;
727 scoped_ptr<extensions::ManagementPolicy::Provider> 728 scoped_ptr<extensions::ManagementPolicy::Provider>
728 shared_module_policy_provider_; 729 shared_module_policy_provider_;
729 730
730 // The SharedModuleService used to check for import dependencies. 731 // The SharedModuleService used to check for import dependencies.
731 scoped_ptr<extensions::SharedModuleService> shared_module_service_; 732 scoped_ptr<extensions::SharedModuleService> shared_module_service_;
732 733
733 ObserverList<extensions::UpdateObserver, true> update_observers_; 734 ObserverList<extensions::UpdateObserver, true> update_observers_;
734 735
736 // Migrates app data when upgrading a legacy packaged app to a platform app
737 scoped_ptr<extensions::AppDataMigrator> app_data_migrator_;
738
735 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 739 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
736 DestroyingProfileClearsExtensions); 740 DestroyingProfileClearsExtensions);
737 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, SetUnsetBlacklistInPrefs); 741 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, SetUnsetBlacklistInPrefs);
738 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 742 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
739 BlacklistedExtensionWillNotInstall); 743 BlacklistedExtensionWillNotInstall);
740 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 744 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
741 UnloadBlacklistedExtensionPolicy); 745 UnloadBlacklistedExtensionPolicy);
742 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 746 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
743 WillNotLoadBlacklistedExtensionsFromDirectory); 747 WillNotLoadBlacklistedExtensionsFromDirectory);
744 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, ReloadBlacklistedExtension); 748 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, ReloadBlacklistedExtension);
745 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, BlacklistedInPrefsFromStartup); 749 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, BlacklistedInPrefsFromStartup);
746 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 750 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
747 GreylistedExtensionDisabled); 751 GreylistedExtensionDisabled);
748 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 752 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
749 GreylistDontEnableManuallyDisabled); 753 GreylistDontEnableManuallyDisabled);
750 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
751 GreylistUnknownDontChange); 755 GreylistUnknownDontChange);
752 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 756 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
753 ManagementPolicyProhibitsEnableOnInstalled); 757 ManagementPolicyProhibitsEnableOnInstalled);
754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 758 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
755 BlockAndUnblockBlacklistedExtension); 759 BlockAndUnblockBlacklistedExtension);
756 760
757 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 761 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
758 }; 762 };
759 763
760 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 764 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698