summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_navigation_observer.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/extensions/extension_navigation_observer.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/extensions/extension_navigation_observer.cc')
-rw-r--r--chrome/browser/extensions/extension_navigation_observer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_navigation_observer.cc b/chrome/browser/extensions/extension_navigation_observer.cc
index 2cb1bc6..d54eb45 100644
--- a/chrome/browser/extensions/extension_navigation_observer.cc
+++ b/chrome/browser/extensions/extension_navigation_observer.cc
@@ -73,8 +73,8 @@ void ExtensionNavigationObserver::PromptToEnableExtensionIfNecessary(
in_progress_prompt_extension_id_ = extension->id();
in_progress_prompt_navigation_controller_ = nav_controller;
- extension_install_ui_.reset(new ExtensionInstallUI(profile_));
- extension_install_ui_->ConfirmReEnable(this, extension);
+ extension_install_prompt_.reset(new ExtensionInstallPrompt(profile_));
+ extension_install_prompt_->ConfirmReEnable(this, extension);
}
}
@@ -89,7 +89,7 @@ void ExtensionNavigationObserver::InstallUIProceed() {
in_progress_prompt_extension_id_ = "";
in_progress_prompt_navigation_controller_ = NULL;
- extension_install_ui_.reset();
+ extension_install_prompt_.reset();
// Grant permissions, re-enable the extension, and then reload the tab.
extension_service->GrantPermissionsAndEnableExtension(extension);
@@ -103,7 +103,7 @@ void ExtensionNavigationObserver::InstallUIAbort(bool user_initiated) {
in_progress_prompt_extension_id_ = "";
in_progress_prompt_navigation_controller_ = NULL;
- extension_install_ui_.reset();
+ extension_install_prompt_.reset();
std::string histogram_name = user_initiated ?
"Extensions.Permissions_ReEnableCancel" :