diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 23:09:16 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 23:09:16 +0000 |
commit | 6dfbbf8d24de61a5d607a7c0d002dc51584c7bda (patch) | |
tree | 071fbd1a7743c8f250ca4f68bbbbed0b53ba4cc1 /chrome/browser/automation | |
parent | c1652ac6c0c9f893368620e4e89ff956693c784a (diff) | |
download | chromium_src-6dfbbf8d24de61a5d607a7c0d002dc51584c7bda.zip chromium_src-6dfbbf8d24de61a5d607a7c0d002dc51584c7bda.tar.gz chromium_src-6dfbbf8d24de61a5d607a7c0d002dc51584c7bda.tar.bz2 |
Mechanical refactor of CrxInstaller signatures. This will make
it easier to add additional configuration features to
CrxInstaller.
Review URL: http://codereview.chromium.org/875003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index e083b60..998b252 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -2452,14 +2452,12 @@ void AutomationProvider::InstallExtension(const FilePath& crx_path, reply_message); const FilePath& install_dir = service->install_directory(); - CrxInstaller::Start(crx_path, - install_dir, - Extension::INTERNAL, - "", // no expected id - false, // please do not delete crx file - true, // privilege increase allowed - service, - NULL); // silent isntall, no UI + scoped_refptr<CrxInstaller> installer( + new CrxInstaller(install_dir, + service, + NULL)); // silent install, no UI + installer->set_allow_privilege_increase(true); + installer->InstallCrx(crx_path); } else { AutomationMsg_InstallExtension::WriteReplyParams( reply_message, AUTOMATION_MSG_EXTENSION_INSTALL_FAILED); |