Chromium Code Reviews| Index: chrome/browser/ui/app_list/apps_model_builder.h |
| diff --git a/chrome/browser/ui/app_list/apps_model_builder.h b/chrome/browser/ui/app_list/apps_model_builder.h |
| index 4f06ff309d9b86cd94b1d986fe5a0b0330de92f5..cc4f3695a16bc285f9f2f15a91f32789ed32d697 100644 |
| --- a/chrome/browser/ui/app_list/apps_model_builder.h |
| +++ b/chrome/browser/ui/app_list/apps_model_builder.h |
| @@ -10,6 +10,7 @@ |
| #include "base/gtest_prod_util.h" |
| #include "base/prefs/public/pref_change_registrar.h" |
| +#include "chrome/browser/extensions/install_observer.h" |
| #include "content/public/browser/notification_observer.h" |
| #include "content/public/browser/notification_registrar.h" |
| #include "ui/app_list/app_list_model.h" |
| @@ -25,7 +26,8 @@ class ImageSkia; |
| } |
| class AppsModelBuilder : public content::NotificationObserver, |
| - public ui::ListModelObserver { |
| + public ui::ListModelObserver, |
| + public extensions::InstallObserver { |
| public: |
| AppsModelBuilder(Profile* profile, |
| app_list::AppListModel::Apps* model, |
| @@ -35,20 +37,19 @@ class AppsModelBuilder : public content::NotificationObserver, |
| // Populates the model. |
| void Build(); |
| - // Called when an extension starts installing. |
| - void OnBeginExtensionInstall(const std::string& extension_id, |
| - const std::string& extension_name, |
| - const gfx::ImageSkia& installing_icon); |
| + private: |
| + typedef std::vector<ExtensionAppItem*> Apps; |
| - // Called when progress is made on an extension's download. |
| - void OnDownloadProgress(const std::string& extension_id, |
| - int percent_downloaded); |
| + // InstallObserver overrides. |
|
tfarina
2013/02/25 23:43:02
extensions::InstallObserver overrides:
Although m
koz (OOO until 15th September)
2013/02/26 00:10:51
Done.
|
| + virtual void OnBeginExtensionInstall(const std::string& extension_id, |
| + const std::string& extension_name, |
| + const gfx::ImageSkia& installing_icon, |
| + bool is_app) OVERRIDE; |
| - // Called when an extension fails to install. |
| - void OnInstallFailure(const std::string& extension_id); |
| + virtual void OnDownloadProgress(const std::string& extension_id, |
| + int percent_downloaded) OVERRIDE; |
| - private: |
| - typedef std::vector<ExtensionAppItem*> Apps; |
| + virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE; |
| // Adds apps in |extensions| to |apps|. |
| void AddApps(const ExtensionSet* extensions, Apps* apps); |