Commit 509ac32e authored by limasdf@gmail.com's avatar limasdf@gmail.com

Small refactoring in app_search_provider.

If wrong notification is received, NOTREACHED() is called.

BUG=None
R=benwells@chromium.org

Review URL: https://codereview.chromium.org/263833019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269604 0039d316-1c4b-4281-b951-d872f2087c98
parent 735f0792
...@@ -105,7 +105,14 @@ void AppSearchProvider::RefreshApps() { ...@@ -105,7 +105,14 @@ void AppSearchProvider::RefreshApps() {
void AppSearchProvider::Observe(int type, void AppSearchProvider::Observe(int type,
const content::NotificationSource& source, const content::NotificationSource& source,
const content::NotificationDetails& detaila) { 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 } // namespace app_list
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment