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

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

Issue 2270733003: arc: Fix appearing duplicate icons in recent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 b69678150136cc7ba53191c0378b117b39879641..cf9a73c7cba50862a3d5a936bc12cc8c18ed9d4f 100644
--- a/chrome/browser/ui/app_list/search/app_search_provider.cc
+++ b/chrome/browser/ui/app_list/search/app_search_provider.cc
@@ -197,9 +197,6 @@ class ArcDataSource : public AppSearchProvider::DataSource,
const std::vector<std::string> app_ids = arc_prefs->GetAppIds();
for (const auto& app_id : app_ids) {
- if (!arc::ShouldShowInLauncher(app_id))
- continue;
-
std::unique_ptr<ArcAppListPrefs::AppInfo> app_info =
arc_prefs->GetApp(app_id);
if (!app_info) {
@@ -207,6 +204,9 @@ class ArcDataSource : public AppSearchProvider::DataSource,
continue;
}
+ if (!app_info->launchable || !app_info->showInLauncher)
xiyuan 2016/08/23 17:57:41 Just double check, would this cover the Settings a
xiyuan 2016/08/23 18:12:47 Got a chance to check this?
khmel 2016/08/23 18:15:10 Sorry, forgot to answer. Yes, checked Settings & A
+ continue;
+
std::unique_ptr<AppSearchProvider::App> app(new AppSearchProvider::App(
this, app_id, app_info->name, app_info->last_launch_time,
app_info->install_time));
@@ -286,7 +286,6 @@ void AppSearchProvider::Start(bool /*is_voice_query*/,
void AppSearchProvider::Stop() {
}
-
void AppSearchProvider::RefreshApps() {
apps_.clear();
for (auto& data_source : data_sources_) {
« 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