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

Unified Diff: chrome/browser/extensions/component_loader.cc

Issue 2805183002: Make ZIP archiver a component extension. (Closed)
Patch Set: Fix the code so that ZIP archiver is added only on Chrome OS. Created 3 years, 8 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 | « chrome/browser/extensions/component_loader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/component_loader.cc
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
index c5787c367ff6e6934c32023c1a31ba86835ec6fd..9d3836418794aac05b862695f63cf810ac996793 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -317,6 +317,13 @@ void ComponentLoader::AddGalleryExtension() {
#endif
}
+void ComponentLoader::AddZipArchiverExtension() {
+#if defined(OS_CHROMEOS)
+ Add(IDR_ZIP_ARCHIVER_MANIFEST,
+ base::FilePath(FILE_PATH_LITERAL("zip_archiver")));
+#endif // defined(OS_CHROMEOS)
+}
+
void ComponentLoader::AddWebstoreWidgetExtension() {
#if defined(OS_CHROMEOS)
AddWithNameAndDescription(
@@ -555,6 +562,13 @@ void ComponentLoader::AddDefaultComponentExtensionsWithBackgroundPages(
AddGalleryExtension();
AddWebstoreWidgetExtension();
+#if defined(OS_CHROMEOS)
benwells 2017/04/14 05:12:32 why do you need the flag here and in the body of A
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kEnableZipArchiverOnFileManager)) {
+ AddZipArchiverExtension();
+ }
+#endif
+
AddHangoutServicesExtension();
AddHotwordAudioVerificationApp();
AddHotwordHelperExtension();
« no previous file with comments | « chrome/browser/extensions/component_loader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698