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..3efb6144f4c01e89f15208193c626a3b9aff907c 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,14 @@ 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(); |
+ break; |
+ default: |
+ NOTREACHED(); |
+ } |
} |
} // namespace app_list |