summaryrefslogtreecommitdiffstats
path: root/ui/app_list/search_result.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-12 05:30:53 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-12 05:30:53 +0000
commit4358bdf10df13f2ac0090cd77f4b853cac5f4cf1 (patch)
treefe50e1547c10bc9720b63a2c5c7a37f6fc420ff0 /ui/app_list/search_result.cc
parent9218623cdabf9b493819948fe79017c2c54f7d80 (diff)
downloadchromium_src-4358bdf10df13f2ac0090cd77f4b853cac5f4cf1.zip
chromium_src-4358bdf10df13f2ac0090cd77f4b853cac5f4cf1.tar.gz
chromium_src-4358bdf10df13f2ac0090cd77f4b853cac5f4cf1.tar.bz2
app_list: Re-submit the search query after uninstalling app from context menu.
To test this: 1. Do an app launcher search with some app results. 2. Right click on an app to bring up the context menu. 3. "Uninstall" and follow the flow to uninstall the app. After step 3, the app is uninstalled the app search query should be resent, and thus updating the search results. BUG=242226,246806 R=xiyuan@chromium.org Review URL: https://chromiumcodereview.appspot.com/22605014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/app_list/search_result.cc')
-rw-r--r--ui/app_list/search_result.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app_list/search_result.cc b/ui/app_list/search_result.cc
index ab40d31..cf90830 100644
--- a/ui/app_list/search_result.cc
+++ b/ui/app_list/search_result.cc
@@ -63,9 +63,11 @@ void SearchResult::SetPercentDownloaded(int percent_downloaded) {
}
void SearchResult::NotifyItemInstalled() {
- FOR_EACH_OBSERVER(SearchResultObserver,
- observers_,
- OnItemInstalled());
+ FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemInstalled());
+}
+
+void SearchResult::NotifyItemUninstalled() {
+ FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemUninstalled());
}
void SearchResult::AddObserver(SearchResultObserver* observer) {