| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/app_list/search/app_result.h" | 5 #include "chrome/browser/ui/app_list/search/app_result.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
| 8 #include "chrome/browser/extensions/extension_util.h" | 8 #include "chrome/browser/extensions/extension_util.h" |
| 9 #include "chrome/browser/extensions/install_tracker.h" | 9 #include "chrome/browser/extensions/install_tracker.h" |
| 10 #include "chrome/browser/extensions/install_tracker_factory.h" | 10 #include "chrome/browser/extensions/install_tracker_factory.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 // Automatically open app after enabling. | 176 // Automatically open app after enabling. |
| 177 Open(ui::EF_NONE); | 177 Open(ui::EF_NONE); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void AppResult::ExtensionEnableFlowAborted(bool user_initiated) { | 180 void AppResult::ExtensionEnableFlowAborted(bool user_initiated) { |
| 181 extension_enable_flow_.reset(); | 181 extension_enable_flow_.reset(); |
| 182 controller_->OnCloseExtensionPrompt(); | 182 controller_->OnCloseExtensionPrompt(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 void AppResult::OnBeginExtensionInstall( | |
| 186 const ExtensionInstallParams& params) {} | |
| 187 | |
| 188 void AppResult::OnDownloadProgress(const std::string& extension_id, | |
| 189 int percent_downloaded) {} | |
| 190 | |
| 191 void AppResult::OnInstallFailure(const std::string& extension_id) {} | |
| 192 | |
| 193 void AppResult::OnExtensionInstalled(const extensions::Extension* extension) {} | |
| 194 | |
| 195 void AppResult::OnExtensionLoaded(const extensions::Extension* extension) { | 185 void AppResult::OnExtensionLoaded(const extensions::Extension* extension) { |
| 196 UpdateIcon(); | 186 UpdateIcon(); |
| 197 } | 187 } |
| 198 | 188 |
| 199 void AppResult::OnExtensionUnloaded(const extensions::Extension* extension) {} | |
| 200 | |
| 201 void AppResult::OnExtensionUninstalled(const extensions::Extension* extension) { | 189 void AppResult::OnExtensionUninstalled(const extensions::Extension* extension) { |
| 202 if (extension->id() != app_id_) | 190 if (extension->id() != app_id_) |
| 203 return; | 191 return; |
| 204 | 192 |
| 205 NotifyItemUninstalled(); | 193 NotifyItemUninstalled(); |
| 206 } | 194 } |
| 207 | 195 |
| 208 void AppResult::OnAppsReordered() {} | |
| 209 | |
| 210 void AppResult::OnAppInstalledToAppList(const std::string& extension_id) {} | |
| 211 | |
| 212 void AppResult::OnShutdown() { StopObservingInstall(); } | 196 void AppResult::OnShutdown() { StopObservingInstall(); } |
| 213 | 197 |
| 214 } // namespace app_list | 198 } // namespace app_list |
| OLD | NEW |