Commit d891ac56 authored by Rachel Wong's avatar Rachel Wong Committed by Commit Bot

Always clear previous playstore results.

Previously, if Suggested Content was disabled, old results would still
appear in the cache. This change ensures that results cache is always
cleared.

Change-Id: If9e09c95e65ff9b731195da5832803ee7505d956
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2264182Reviewed-by: default avatarJia Meng <jiameng@chromium.org>
Commit-Queue: Rachel Wong <wrong@chromium.org>
Cr-Commit-Position: refs/heads/master@{#782221}
parent b1378c5c
......@@ -102,6 +102,10 @@ ash::AppListSearchResultType ArcPlayStoreSearchProvider::ResultType() {
}
void ArcPlayStoreSearchProvider::Start(const base::string16& query) {
last_query_ = query;
// Clear any results from the previous query.
ClearResultsSilently();
// Always check if suggested content is enabled before searching for play
// store apps.
PrefService* pref_service = profile_->GetPrefs();
......@@ -114,11 +118,6 @@ void ArcPlayStoreSearchProvider::Start(const base::string16& query) {
return;
}
last_query_ = query;
// Clear any results from the previous query.
ClearResultsSilently();
arc::mojom::AppInstance* app_instance =
arc::ArcServiceManager::Get()
? ARC_GET_INSTANCE_FOR_METHOD(
......
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