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

Issue 1936953002: Don't return installed apps in webstore searches in Launcher (Closed)

Created:
4 years, 7 months ago by Greg Levin
Modified:
4 years, 7 months ago
Reviewers:
xiyuan, calamity, Matt Giuca
CC:
chromium-reviews, tfarina, Matt Giuca, tapted, xiyuan
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't return installed apps in webstore searches in Launcher BUG=592168 TEST=Open Launcher, search for and install Sudoku app, launch it. Reopen Launcher, observer that app icon on Start Page looks right. In the Launcher search, webstore app results used the same internal id as installed apps. Sometimes the wrong time of result object would get cached in the Mixer, and a webstore result (smaller icon, no context menu) would end up on the Start Page. This CL changes internal id scheme for webstore app results, and explicitly removes installed apps from results returned by webstore provider. Committed: https://crrev.com/bcf7574721f7393dd33469fe476999ab50a35075 Cr-Commit-Position: refs/heads/master@{#391791}

Patch Set 1 #

Total comments: 13

Patch Set 2 : First reviewer revisions #

Total comments: 6

Patch Set 3 : Address final reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -16 lines) Patch
M chrome/browser/ui/app_list/app_list_controller_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_provider.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc View 1 2 10 chunks +61 lines, -13 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_result.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_result.cc View 1 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
Greg Levin
Please have a look! Choosing calamity@ as reviewer (somewhat arbitrarily), but +mgiuca@ and xiyuan@ for ...
4 years, 7 months ago (2016-05-02 00:09:14 UTC) #2
Matt Giuca
https://codereview.chromium.org/1936953002/diff/1/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc File chrome/browser/ui/app_list/search/webstore/webstore_provider.cc (right): https://codereview.chromium.org/1936953002/diff/1/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc#newcode174 chrome/browser/ui/app_list/search/webstore/webstore_provider.cc:174: if (controller_->IsExtensionInstalled(profile_, app_id)) Comment here please (explaining that we ...
4 years, 7 months ago (2016-05-02 00:34:52 UTC) #4
Greg Levin
https://codereview.chromium.org/1936953002/diff/1/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc File chrome/browser/ui/app_list/search/webstore/webstore_provider.cc (right): https://codereview.chromium.org/1936953002/diff/1/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc#newcode174 chrome/browser/ui/app_list/search/webstore/webstore_provider.cc:174: if (controller_->IsExtensionInstalled(profile_, app_id)) On 2016/05/02 00:34:52, Matt Giuca wrote: ...
4 years, 7 months ago (2016-05-02 01:38:49 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936953002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936953002/20001
4 years, 7 months ago (2016-05-02 01:39:07 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 02:17:56 UTC) #9
xiyuan
lgtm https://codereview.chromium.org/1936953002/diff/20001/chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc File chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc (right): https://codereview.chromium.org/1936953002/diff/20001/chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc#newcode155 chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc:155: std::set<std::string> installed_ids_; nit: #include <set>
4 years, 7 months ago (2016-05-02 16:16:58 UTC) #11
calamity
lgtm https://codereview.chromium.org/1936953002/diff/20001/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc File chrome/browser/ui/app_list/search/webstore/webstore_provider.cc (right): https://codereview.chromium.org/1936953002/diff/20001/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc#newcode174 chrome/browser/ui/app_list/search/webstore/webstore_provider.cc:174: // If an app is already installed, dont' ...
4 years, 7 months ago (2016-05-02 18:16:55 UTC) #12
Matt Giuca
lgtm with xiyuan and calamity's nits addressed. https://codereview.chromium.org/1936953002/diff/1/chrome/browser/ui/app_list/search/webstore/webstore_result.cc File chrome/browser/ui/app_list/search/webstore/webstore_result.cc (right): https://codereview.chromium.org/1936953002/diff/1/chrome/browser/ui/app_list/search/webstore/webstore_result.cc#newcode85 chrome/browser/ui/app_list/search/webstore/webstore_result.cc:85: extension_id + ...
4 years, 7 months ago (2016-05-03 00:19:17 UTC) #13
Greg Levin
https://codereview.chromium.org/1936953002/diff/20001/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc File chrome/browser/ui/app_list/search/webstore/webstore_provider.cc (right): https://codereview.chromium.org/1936953002/diff/20001/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc#newcode174 chrome/browser/ui/app_list/search/webstore/webstore_provider.cc:174: // If an app is already installed, dont' show ...
4 years, 7 months ago (2016-05-03 21:59:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936953002/40001
4 years, 7 months ago (2016-05-03 22:00:05 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/29119)
4 years, 7 months ago (2016-05-03 22:23:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936953002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936953002/40001
4 years, 7 months ago (2016-05-05 12:34:34 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-05 13:36:11 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 13:37:41 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bcf7574721f7393dd33469fe476999ab50a35075
Cr-Commit-Position: refs/heads/master@{#391791}

Powered by Google App Engine
This is Rietveld 408576698