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/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/app_list/app_context_menu.h" | 10 #include "chrome/browser/ui/app_list/app_context_menu.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 extension_enable_flow_.reset(); | 185 extension_enable_flow_.reset(); |
186 controller_->OnCloseChildDialog(); | 186 controller_->OnCloseChildDialog(); |
187 } | 187 } |
188 | 188 |
189 void AppResult::OnExtensionLoaded(content::BrowserContext* browser_context, | 189 void AppResult::OnExtensionLoaded(content::BrowserContext* browser_context, |
190 const extensions::Extension* extension) { | 190 const extensions::Extension* extension) { |
191 UpdateIcon(); | 191 UpdateIcon(); |
192 } | 192 } |
193 | 193 |
194 void AppResult::OnExtensionUninstalled(content::BrowserContext* browser_context, | 194 void AppResult::OnExtensionUninstalled(content::BrowserContext* browser_context, |
195 const extensions::Extension* extension) { | 195 const extensions::Extension* extension, |
| 196 extensions::UninstallReason reason) { |
196 if (extension->id() != app_id_) | 197 if (extension->id() != app_id_) |
197 return; | 198 return; |
198 | 199 |
199 NotifyItemUninstalled(); | 200 NotifyItemUninstalled(); |
200 } | 201 } |
201 | 202 |
202 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) { | 203 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) { |
203 DCHECK_EQ(extension_registry_, registry); | 204 DCHECK_EQ(extension_registry_, registry); |
204 StopObservingExtensionRegistry(); | 205 StopObservingExtensionRegistry(); |
205 } | 206 } |
206 | 207 |
207 } // namespace app_list | 208 } // namespace app_list |
OLD | NEW |