summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/crx_installer.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 20:45:46 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-19 20:45:46 +0000
commit867a73e1e2aad10f60952235da84f5d98cff9aa6 (patch)
tree5e977ff9c87a2cd3de2d7f50b057adbdad4c70bf /chrome/browser/extensions/crx_installer.cc
parent35de4be0f924ef6279a6a25fe840522524fa177b (diff)
downloadchromium_src-867a73e1e2aad10f60952235da84f5d98cff9aa6.zip
chromium_src-867a73e1e2aad10f60952235da84f5d98cff9aa6.tar.gz
chromium_src-867a73e1e2aad10f60952235da84f5d98cff9aa6.tar.bz2
Resubmit 1025006: Refactor app-related manifest properties
so that they don't include the name 'app'. TBR=erikkay@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/crx_installer.cc')
-rw-r--r--chrome/browser/extensions/crx_installer.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index 02bc700..93ec0bb 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -39,7 +39,7 @@ CrxInstaller::CrxInstaller(const FilePath& install_directory,
install_source_(Extension::INTERNAL),
delete_source_(false),
allow_privilege_increase_(false),
- force_app_origin_to_download_url_(false),
+ force_web_origin_to_download_url_(false),
create_app_shortcut_(false),
frontend_(frontend),
client_(client) {
@@ -72,8 +72,8 @@ void CrxInstaller::InstallCrx(const FilePath& source_file) {
g_browser_process->resource_dispatcher_host(),
this));
- if (force_app_origin_to_download_url_ && original_url_.is_valid()) {
- unpacker->set_app_origin_override(original_url_.GetOrigin());
+ if (force_web_origin_to_download_url_ && original_url_.is_valid()) {
+ unpacker->set_web_origin(original_url_.GetOrigin());
}
ChromeThread::PostTask(
@@ -142,7 +142,7 @@ void CrxInstaller::OnUnpackSuccess(const FilePath& temp_dir,
return;
}
- if (client_.get() || extension_->IsApp()) {
+ if (client_.get() || extension_->GetFullLaunchURL().is_valid()) {
Extension::DecodeIcon(extension_.get(), Extension::EXTENSION_ICON_LARGE,
&install_icon_);
}
@@ -177,7 +177,7 @@ void CrxInstaller::ConfirmInstall() {
void CrxInstaller::InstallUIProceed(bool create_app_shortcut) {
if (create_app_shortcut) {
- DCHECK(extension_->IsApp());
+ DCHECK(extension_->GetFullLaunchURL().is_valid());
create_app_shortcut_ = true;
}
@@ -233,7 +233,7 @@ void CrxInstaller::CompleteInstall() {
IDR_EXTENSION_DEFAULT_ICON);
ShellIntegration::ShortcutInfo shortcut_info;
- shortcut_info.url = extension_->app_launch_url();
+ shortcut_info.url = extension_->GetFullLaunchURL();
shortcut_info.extension_id = UTF8ToUTF16(extension_->id());
shortcut_info.title = UTF8ToUTF16(extension_->name());
shortcut_info.description = UTF8ToUTF16(extension_->description());