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

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: add break 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..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
« 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