Chromium Code Reviews| Index: chrome/browser/ui/app_list/search/app_search_provider.cc |
| diff --git a/chrome/browser/ui/app_list/search/app_search_provider.cc b/chrome/browser/ui/app_list/search/app_search_provider.cc |
| index 99ddc6b2ca89d3140498c87ebb653687f85016b1..5a651a91c98d69499447b48638015c887a864396 100644 |
| --- a/chrome/browser/ui/app_list/search/app_search_provider.cc |
| +++ b/chrome/browser/ui/app_list/search/app_search_provider.cc |
| @@ -105,7 +105,13 @@ void AppSearchProvider::RefreshApps() { |
| void AppSearchProvider::Observe(int type, |
| const content::NotificationSource& source, |
| const content::NotificationDetails& detaila) { |
| - RefreshApps(); |
| + switch (type) { |
| + case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: |
| + case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: |
| + RefreshApps(); |
| + default: |
|
tfarina
2014/05/09 23:33:47
I think you need a break; after RefreshApps(), don
|
| + NOTREACHED(); |
| + } |
| } |
| } // namespace app_list |