Move ZipFileInstaller from chrome/ to extensions/

Moving ZipFileInstaller from chrome/ to extensions/ and changing it to
take a callback instead of directly installing the unpacked
extension/theme.

Providing a method in chrome/ to create a callback that does the
installation (previous behavior).

This CL is in preparation for using the Unzipper service to install
extensions, as some of the logic performed by the utility handler code
will be moved to this class and we'll be shared with the CrxInstaller
class.

Note that the zipfile_installer_unittest could not yet be moved to
extensions/, it will be done later (see crbug.com/817131).

Bug: 799220
Change-Id: I9ae6f13e5e9a0af4c111119952fd8915ff3dcfd3
Reviewed-on: https://chromium-review.googlesource.com/939842
Commit-Queue: Jay Civelli <[email protected]>
Reviewed-by: Finnur Thorarinsson <[email protected]>
Reviewed-by: Reilly Grant <[email protected]>
Cr-Commit-Position: refs/heads/master@{#540204}
diff --git a/chrome/browser/extensions/BUILD.gn b/chrome/browser/extensions/BUILD.gn
index 260fb5bd..abb83eaa 100644
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -497,6 +497,8 @@
     "chrome_process_manager_delegate.h",
     "chrome_url_request_util.cc",
     "chrome_url_request_util.h",
+    "chrome_zipfile_installer.cc",
+    "chrome_zipfile_installer.h",
     "clipboard_extension_helper_chromeos.cc",
     "clipboard_extension_helper_chromeos.h",
     "component_extensions_whitelist/whitelist.cc",
@@ -764,8 +766,6 @@
     "window_controller_list.cc",
     "window_controller_list.h",
     "window_controller_list_observer.h",
-    "zipfile_installer.cc",
-    "zipfile_installer.h",
   ]
 
   configs += [