summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 08:58:12 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 08:58:12 +0000
commit7d8867df6c96bf76c040042a834af04a8ab319bc (patch)
tree3e0914651dc6093502fc65fb89631bd34031528e /chrome/browser/views
parent6145198177d58f79e7ed1b44fee883ea074fc5fa (diff)
downloadchromium_src-7d8867df6c96bf76c040042a834af04a8ab319bc.zip
chromium_src-7d8867df6c96bf76c040042a834af04a8ab319bc.tar.gz
chromium_src-7d8867df6c96bf76c040042a834af04a8ab319bc.tar.bz2
Refactor app-related manifest properties so that they don't
include the name 'app'. I think these will be useful for normal extensions, too. Also extract an ExtensionExtent class out of Extension. I think this will be useful for passing by value to the IO thread. Review URL: http://codereview.chromium.org/1025006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/extensions/extension_install_prompt.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/views/extensions/extension_install_prompt.cc b/chrome/browser/views/extensions/extension_install_prompt.cc
index 482cb3c..7e45c67 100644
--- a/chrome/browser/views/extensions/extension_install_prompt.cc
+++ b/chrome/browser/views/extensions/extension_install_prompt.cc
@@ -44,7 +44,7 @@ class InstallDialogContent : public views::View, public views::DialogDelegate {
ExtensionInstallUI::PromptType type)
: delegate_(delegate), icon_(NULL), warning_(NULL),
create_shortcut_(NULL), type_(type) {
- if (extension->IsApp()) {
+ if (extension->GetFullLaunchURL().is_valid()) {
icon_size_ = kIconSizeApp;
right_column_width_ = kRightColumnWidthApp;
} else {
@@ -69,7 +69,8 @@ class InstallDialogContent : public views::View, public views::DialogDelegate {
heading_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
AddChildView(heading_);
- if (type_ == ExtensionInstallUI::INSTALL_PROMPT && extension->IsApp()) {
+ if (type_ == ExtensionInstallUI::INSTALL_PROMPT &&
+ extension->GetFullLaunchURL().is_valid()) {
create_shortcut_ = new views::Checkbox(
l10n_util::GetString(IDS_EXTENSION_PROMPT_CREATE_SHORTCUT));
create_shortcut_->SetChecked(true);