summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_install_ui.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 23:08:46 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 23:08:46 +0000
commit4222d1a92c66a7035c2e642282f83630539b614c (patch)
tree30bdb6b3d9d586d89db6df8c098f18c1b3e428cc /chrome/browser/extensions/extension_install_ui.cc
parentadfe188f467fda2936b1a051dff5280afefc5a13 (diff)
downloadchromium_src-4222d1a92c66a7035c2e642282f83630539b614c.zip
chromium_src-4222d1a92c66a7035c2e642282f83630539b614c.tar.gz
chromium_src-4222d1a92c66a7035c2e642282f83630539b614c.tar.bz2
Shorten text next to checkmark. Use yellow text instead of an alert dialog.
See screen cap in bug. BUG=41356 Review URL: http://codereview.chromium.org/1642006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44417 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_install_ui.cc')
-rw-r--r--chrome/browser/extensions/extension_install_ui.cc26
1 files changed, 3 insertions, 23 deletions
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
index 00c6a51..1c21536 100644
--- a/chrome/browser/extensions/extension_install_ui.cc
+++ b/chrome/browser/extensions/extension_install_ui.cc
@@ -43,20 +43,17 @@
// static
const int ExtensionInstallUI::kTitleIds[NUM_PROMPT_TYPES] = {
IDS_EXTENSION_INSTALL_PROMPT_TITLE,
- IDS_EXTENSION_UNINSTALL_PROMPT_TITLE,
- IDS_EXTENSION_ENABLE_INCOGNITO_PROMPT_TITLE
+ IDS_EXTENSION_UNINSTALL_PROMPT_TITLE
};
// static
const int ExtensionInstallUI::kHeadingIds[NUM_PROMPT_TYPES] = {
IDS_EXTENSION_INSTALL_PROMPT_HEADING,
- IDS_EXTENSION_UNINSTALL_PROMPT_HEADING,
- IDS_EXTENSION_ENABLE_INCOGNITO_PROMPT_HEADING
+ IDS_EXTENSION_UNINSTALL_PROMPT_HEADING
};
// static
const int ExtensionInstallUI::kButtonIds[NUM_PROMPT_TYPES] = {
IDS_EXTENSION_PROMPT_INSTALL_BUTTON,
- IDS_EXTENSION_PROMPT_UNINSTALL_BUTTON,
- IDS_EXTENSION_PROMPT_ENABLE_INCOGNITO_BUTTON
+ IDS_EXTENSION_PROMPT_UNINSTALL_BUTTON
};
namespace {
@@ -182,15 +179,6 @@ void ExtensionInstallUI::ConfirmUninstall(Delegate* delegate,
ShowConfirmation(UNINSTALL_PROMPT);
}
-void ExtensionInstallUI::ConfirmEnableIncognito(Delegate* delegate,
- Extension* extension) {
- DCHECK(ui_loop_ == MessageLoop::current());
- extension_ = extension;
- delegate_ = delegate;
-
- ShowConfirmation(ENABLE_INCOGNITO_PROMPT);
-}
-
void ExtensionInstallUI::OnInstallSuccess(Extension* extension) {
if (extension->IsTheme()) {
ShowThemeInfoBar(previous_theme_id_, previous_use_system_theme_,
@@ -277,14 +265,6 @@ void ExtensionInstallUI::OnImageLoaded(
message, UNINSTALL_PROMPT);
break;
}
- case ENABLE_INCOGNITO_PROMPT: {
- string16 message =
- l10n_util::GetStringFUTF16(IDS_EXTENSION_PROMPT_WARNING_INCOGNITO,
- l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
- ShowExtensionInstallUIPromptImpl(profile_, delegate_, extension_, &icon_,
- message, ENABLE_INCOGNITO_PROMPT);
- break;
- }
default:
NOTREACHED() << "Unknown message";
break;