summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/api/webstore_private/webstore_private_api.cc3
-rw-r--r--chrome/browser/extensions/install_observer.h3
-rw-r--r--chrome/browser/extensions/install_tracker.cc6
-rw-r--r--chrome/browser/extensions/install_tracker.h3
4 files changed, 10 insertions, 5 deletions
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
index 2de4971..0144358 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -485,7 +485,8 @@ void CompleteInstallFunction::OnGetAppLauncherEnabled(
extensions::InstallTracker* tracker =
extensions::InstallTrackerFactory::GetForProfile(profile());
tracker->OnBeginExtensionInstall(
- id, name, approval_->installing_icon, approval_->manifest->is_app());
+ id, name, approval_->installing_icon, approval_->manifest->is_app(),
+ approval_->manifest->is_platform_app());
}
// The extension will install through the normal extension install flow, but
diff --git a/chrome/browser/extensions/install_observer.h b/chrome/browser/extensions/install_observer.h
index d222062..68ffbc4 100644
--- a/chrome/browser/extensions/install_observer.h
+++ b/chrome/browser/extensions/install_observer.h
@@ -17,7 +17,8 @@ class InstallObserver {
const std::string& extension_id,
const std::string& extension_name,
const gfx::ImageSkia& installing_icon,
- bool is_app) = 0;
+ bool is_app,
+ bool is_platform_app) = 0;
virtual void OnDownloadProgress(const std::string& extension_id,
int percent_downloaded) = 0;
diff --git a/chrome/browser/extensions/install_tracker.cc b/chrome/browser/extensions/install_tracker.cc
index de91234..d92ccf0 100644
--- a/chrome/browser/extensions/install_tracker.cc
+++ b/chrome/browser/extensions/install_tracker.cc
@@ -24,12 +24,14 @@ void InstallTracker::OnBeginExtensionInstall(
const std::string& extension_id,
const std::string& extension_name,
const gfx::ImageSkia& installing_icon,
- bool is_app) {
+ bool is_app,
+ bool is_platform_app) {
FOR_EACH_OBSERVER(InstallObserver, observers_,
OnBeginExtensionInstall(extension_id,
extension_name,
installing_icon,
- is_app));
+ is_app,
+ is_platform_app));
}
void InstallTracker::OnDownloadProgress(const std::string& extension_id,
diff --git a/chrome/browser/extensions/install_tracker.h b/chrome/browser/extensions/install_tracker.h
index fa04213..3caa907 100644
--- a/chrome/browser/extensions/install_tracker.h
+++ b/chrome/browser/extensions/install_tracker.h
@@ -27,7 +27,8 @@ class InstallTracker : public ProfileKeyedService {
const std::string& extension_id,
const std::string& extension_name,
const gfx::ImageSkia& installing_icon,
- bool is_app);
+ bool is_app,
+ bool is_platform_app);
void OnDownloadProgress(const std::string& extension_id,
int percent_downloaded);
void OnInstallFailure(const std::string& extension_id);