Add a |public_key| parameter to the CrxInstaller::Install function.

This is a mechanical change for the component updater.

The extension updater needs the public key of the CRX extension for its
installer to write it in the extension manifest, when the CRX
extension is installed.


Bug: 777656
Change-Id: I8243b64c61888fa11dba81d2664003a2c57e8b16
Reviewed-on: https://chromium-review.googlesource.com/734199
Reviewed-by: Devlin <[email protected]>
Reviewed-by: Joshua Pawlicki <[email protected]>
Reviewed-by: Julian Pastarmov <[email protected]>
Commit-Queue: Sorin Jianu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#512058}
diff --git a/components/component_updater/component_updater_service_unittest.cc b/components/component_updater/component_updater_service_unittest.cc
index 4671c74..fafb1bb 100644
--- a/components/component_updater/component_updater_service_unittest.cc
+++ b/components/component_updater/component_updater_service_unittest.cc
@@ -48,8 +48,9 @@
   MockInstaller();
 
   MOCK_METHOD1(OnUpdateError, void(int error));
-  MOCK_METHOD2(Install,
+  MOCK_METHOD3(Install,
                void(const base::FilePath& unpack_path,
+                    const std::string& public_key,
                     const update_client::CrxInstaller::Callback& callback));
   MOCK_METHOD2(GetInstalledFile,
                bool(const std::string& file, base::FilePath* installed_file));