diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-28 04:21:12 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-28 04:21:12 +0000 |
commit | 1efcdcae64fa8528467de327c6c4f21f6f632a60 (patch) | |
tree | 39d1513403494b340035b01c849883c388c5fceb /chrome/browser/extensions/crx_installer.cc | |
parent | 70f68fda44a66e0e5a1521c5732f67a3a5f04ff8 (diff) | |
download | chromium_src-1efcdcae64fa8528467de327c6c4f21f6f632a60.zip chromium_src-1efcdcae64fa8528467de327c6c4f21f6f632a60.tar.gz chromium_src-1efcdcae64fa8528467de327c6c4f21f6f632a60.tar.bz2 |
ExtensionInstallUI clean up - part 2.
Changes in this patch:
- Inline DisableFailureForUITests() in ExtensionInstallUI.
- Rename DisableFailureForUITests() to disable_failure_ui().
- Surround it with UNIT_TEST.
BUG=260465
TEST=browser_tests
R=pkasting@chromium.org,kalman@chromium.org
Review URL: https://chromiumcodereview.appspot.com/23072041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/crx_installer.cc')
-rw-r--r-- | chrome/browser/extensions/crx_installer.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc index 6758d2d..2f793a2 100644 --- a/chrome/browser/extensions/crx_installer.cc +++ b/chrome/browser/extensions/crx_installer.cc @@ -130,7 +130,8 @@ CrxInstaller::CrxInstaller( if (client_) { client_->install_ui()->SetUseAppInstalledBubble( approval->use_app_installed_bubble); - client_->install_ui()->SetSkipPostInstallUI(approval->skip_post_install_ui); + client_->install_ui()->set_skip_post_install_ui( + approval->skip_post_install_ui); } if (approval->skip_install_dialog) { @@ -517,7 +518,7 @@ void CrxInstaller::ConfirmInstall() { // because the WebStore already shows an error dialog itself. // Note: |client_| can be NULL in unit_tests! if (extension()->from_webstore() && client_) - client_->install_ui()->SetSkipPostInstallUI(true); + client_->install_ui()->set_skip_post_install_ui(true); ReportFailureFromUIThread(CrxInstallerError(error)); return; } |