Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3015)

Unified Diff: chrome/browser/extensions/install_tracker.cc

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/install_tracker.cc
diff --git a/chrome/browser/extensions/install_tracker.cc b/chrome/browser/extensions/install_tracker.cc
index 67503028f3561150b21a94a4e51b5b5a663d04af..e7014f693100eff87a6da88f55f88c7efae556e1 100644
--- a/chrome/browser/extensions/install_tracker.cc
+++ b/chrome/browser/extensions/install_tracker.cc
@@ -53,12 +53,22 @@ void InstallTracker::OnBeginExtensionInstall(
OnBeginExtensionInstall(params));
}
+void InstallTracker::OnBeginExtensionDownload(const std::string& extension_id) {
+ FOR_EACH_OBSERVER(
+ InstallObserver, observers_, OnBeginExtensionDownload(extension_id));
+}
+
void InstallTracker::OnDownloadProgress(const std::string& extension_id,
int percent_downloaded) {
FOR_EACH_OBSERVER(InstallObserver, observers_,
OnDownloadProgress(extension_id, percent_downloaded));
}
+void InstallTracker::OnBeginCrxInstall(const std::string& extension_id) {
+ FOR_EACH_OBSERVER(
+ InstallObserver, observers_, OnBeginCrxInstall(extension_id));
+}
+
void InstallTracker::OnInstallFailure(
const std::string& extension_id) {
FOR_EACH_OBSERVER(InstallObserver, observers_,

Powered by Google App Engine
This is Rietveld 408576698