Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: chrome/browser/ui/app_list/search/app_search_provider.cc

Issue 263833019: Small refactoring for app_search_provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698