summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/testing_automation_provider.cc
diff options
context:
space:
mode:
authorjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 19:49:11 +0000
committerjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 19:49:11 +0000
commitc82da8c4adce2fcf0fef48442f877f4d5917a6b1 (patch)
treeea7a3f0956d3f0fc51f559ef5259cb29a9a03edb /chrome/browser/automation/testing_automation_provider.cc
parent6420f2bf0febcfa31ba1d672d39d2ccfc1bd5f34 (diff)
downloadchromium_src-c82da8c4adce2fcf0fef48442f877f4d5917a6b1.zip
chromium_src-c82da8c4adce2fcf0fef48442f877f4d5917a6b1.tar.gz
chromium_src-c82da8c4adce2fcf0fef48442f877f4d5917a6b1.tar.bz2
Refactoring ExtensionInstallUI to abstract the Browser references.
As part of the effort to build unit-tests on Android, this CL abstracts out references to the Browser object from the extension install ui code. For this, ExtensionInstallUI has been renamed ExtensionInstallPrompt and the UI specific bits have been moved to a new class that took the old name ExtensionInstallUI. BUG=None TEST=You should be able to install an extension. All browser tests/unit tests should pass. Review URL: https://chromiumcodereview.appspot.com/10388252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141261 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/testing_automation_provider.cc')
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 3431344..ddf9e2a 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -3975,8 +3975,8 @@ void TestingAutomationProvider::InstallExtension(
// If the given path has a 'crx' extension, assume it is a packed extension
// and install it. Otherwise load it as an unpacked extension.
if (extension_path.MatchesExtension(FILE_PATH_LITERAL(".crx"))) {
- ExtensionInstallUI* client =
- (with_ui ? new ExtensionInstallUI(browser->profile()) : NULL);
+ ExtensionInstallPrompt* client =
+ (with_ui ? new ExtensionInstallPrompt(browser->profile()) : NULL);
scoped_refptr<CrxInstaller> installer(
CrxInstaller::Create(service, client));
if (!with_ui)