From 6516fff5269f704fb79872cbfbf6e43d622015ad Mon Sep 17 00:00:00 2001 From: "asargent@chromium.org" Date: Fri, 11 Jun 2010 17:54:18 +0000 Subject: Tweak install and dangerous download dialogs for apps. BUG=45155 TEST=Run chrome with the --enable-apps flag.Install an app - the confirmation dialog should say "..this App..." instead of "...this Extension...". Install an extension - it should stil say "Extension". Review URL: http://codereview.chromium.org/2730002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49553 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/extensions/extension.cc | 4 ++++ chrome/common/extensions/extension.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc index f68445e..8736c79 100644 --- a/chrome/common/extensions/extension.cc +++ b/chrome/common/extensions/extension.cc @@ -1539,6 +1539,10 @@ std::set Extension::GetBrowserImages() { return image_paths; } +bool Extension::IsApp() const { + return !GetFullLaunchURL().is_empty(); +} + GURL Extension::GetFullLaunchURL() const { if (!launch_local_path_.empty()) { return extension_url_.Resolve(launch_local_path_); diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h index 67eee26..62bcfc7 100644 --- a/chrome/common/extensions/extension.h +++ b/chrome/common/extensions/extension.h @@ -329,6 +329,9 @@ class Extension { const std::string omnibox_keyword() const { return omnibox_keyword_; } + // Is this extension an App? + bool IsApp() const; + bool web_content_enabled() const { return web_content_enabled_; } const ExtensionExtent& web_extent() const { return web_extent_; } -- cgit v1.1