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

Issue 1071093002: Implement setSearchResults. (Closed)

Created:
5 years, 8 months ago by yawano
Modified:
5 years, 8 months ago
Reviewers:
satorux1, Matt Giuca
CC:
chromium-reviews, extensions-reviews_chromium.org, Matt Giuca, tapted, tfarina, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement setSearchResults. Initial implementation of chrome.launcherSearchProvider.setSearchResults. iconUrl is not supported with this CL. It will be implemented with another CL. BUG=440649 Committed: https://crrev.com/6bbf53d7e8ee5fd25918c112896704d90b077a4b Cr-Commit-Position: refs/heads/master@{#325428}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Clear results after query is ended. #

Total comments: 30

Patch Set 4 : Rebase. #

Patch Set 5 : Address comments. #

Patch Set 6 : Use ScopedVector and STLValueDeleter. #

Patch Set 7 : Rename to item_id. #

Total comments: 24

Patch Set 8 : Share icon_image between duplicated results. #

Patch Set 9 : Add includes. #

Total comments: 12

Patch Set 10 : Move AddObserver to Initialize(). #

Patch Set 11 : Fix memory leak. #

Total comments: 4

Patch Set 12 : Add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -10 lines) Patch
M chrome/browser/chromeos/extensions/launcher_search_provider.cc View 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/launcher_search_provider/service.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/chromeos/launcher_search_provider/service.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +41 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/search/launcher_search/launcher_search_provider.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/launcher_search/launcher_search_provider.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +31 lines, -2 lines 0 comments Download
A chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +98 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 26 (3 generated)
yawano
PTAL. @satorux: files under chrome/browser/chromeos. @mgiuca: the rest of files. Thank you!
5 years, 8 months ago (2015-04-09 06:00:09 UTC) #2
yawano
Sorry, I forgot to clear search results after query has ended. Added the logic with ...
5 years, 8 months ago (2015-04-09 06:26:37 UTC) #3
Matt Giuca
I will review the rest shortly, but just an FYI comment first. https://codereview.chromium.org/1071093002/diff/40001/ui/app_list/search/mixer.cc File ui/app_list/search/mixer.cc ...
5 years, 8 months ago (2015-04-10 03:55:17 UTC) #4
yawano
https://codereview.chromium.org/1071093002/diff/40001/ui/app_list/search/mixer.cc File ui/app_list/search/mixer.cc (right): https://codereview.chromium.org/1071093002/diff/40001/ui/app_list/search/mixer.cc#newcode155 ui/app_list/search/mixer.cc:155: const Group& launcher_search_api_group = *groups_[LAUNCHER_SEARCH_API_GROUP]; Okay, I'll wait until ...
5 years, 8 months ago (2015-04-10 04:05:38 UTC) #5
yawano
Rebased CL. PTAL. Thank you!
5 years, 8 months ago (2015-04-10 07:56:15 UTC) #6
Matt Giuca
https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/chromeos/launcher_search_provider/service.cc File chrome/browser/chromeos/launcher_search_provider/service.cc (right): https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/chromeos/launcher_search_provider/service.cc#newcode98 chrome/browser/chromeos/launcher_search_provider/service.cc:98: result->item_id, result->icon_url.Pass(), result->relevance, It looks like you are going ...
5 years, 8 months ago (2015-04-10 13:29:14 UTC) #7
Matt Giuca
https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc File chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc (right): https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc#newcode58 chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc:58: if (!extension_icon_image_->image_skia().isNull()) As discussed, ignore this comment. (I just ...
5 years, 8 months ago (2015-04-13 07:25:14 UTC) #8
yawano
@mgiuca: Thank you for the review! PTAL. https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/chromeos/launcher_search_provider/service.cc File chrome/browser/chromeos/launcher_search_provider/service.cc (right): https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/chromeos/launcher_search_provider/service.cc#newcode98 chrome/browser/chromeos/launcher_search_provider/service.cc:98: result->item_id, result->icon_url.Pass(), ...
5 years, 8 months ago (2015-04-13 07:30:52 UTC) #9
Matt Giuca
https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc File chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc (right): https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc#newcode45 chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc:45: new LauncherSearchResult(id(), make_scoped_ptr(icon_url), You mean actually share the extension::IconImage ...
5 years, 8 months ago (2015-04-14 03:15:44 UTC) #10
yawano
@mgiuca: PTAL. Thank you! https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc File chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc (right): https://codereview.chromium.org/1071093002/diff/40001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc#newcode45 chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc:45: new LauncherSearchResult(id(), make_scoped_ptr(icon_url), Yes. I ...
5 years, 8 months ago (2015-04-14 05:42:00 UTC) #11
Matt Giuca
https://codereview.chromium.org/1071093002/diff/160001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc File chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc (right): https://codereview.chromium.org/1071093002/diff/160001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc#newcode74 chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc:74: DCHECK(extension_icon_image_ != nullptr); nit: DCHECK(extension_icon_image_); https://codereview.chromium.org/1071093002/diff/160001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc#newcode75 chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc:75: extension_icon_image_->AddObserver(this); Ah, ...
5 years, 8 months ago (2015-04-15 02:58:49 UTC) #12
yawano
PTAL. Thank you! https://codereview.chromium.org/1071093002/diff/160001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc File chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc (right): https://codereview.chromium.org/1071093002/diff/160001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc#newcode74 chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc:74: DCHECK(extension_icon_image_ != nullptr); On 2015/04/15 02:58:48, ...
5 years, 8 months ago (2015-04-15 04:13:26 UTC) #13
Matt Giuca
Just had a final look over it, with a few more nits and an important ...
5 years, 8 months ago (2015-04-15 04:17:46 UTC) #14
yawano
Thank you for the review! PTAL. https://codereview.chromium.org/1071093002/diff/160001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_provider.cc File chrome/browser/ui/app_list/search/launcher_search/launcher_search_provider.cc (right): https://codereview.chromium.org/1071093002/diff/160001/chrome/browser/ui/app_list/search/launcher_search/launcher_search_provider.cc#newcode42 chrome/browser/ui/app_list/search/launcher_search/launcher_search_provider.cc:42: extension_results_.clear(); Done. For ...
5 years, 8 months ago (2015-04-15 04:43:48 UTC) #15
Matt Giuca
Thanks for putting up with my constantly adding new comments to this. I kept noticing ...
5 years, 8 months ago (2015-04-15 05:27:19 UTC) #16
yawano
@mgiuca: Thank you for the review!
5 years, 8 months ago (2015-04-15 05:33:32 UTC) #17
satorux1
https://codereview.chromium.org/1071093002/diff/200001/chrome/browser/chromeos/launcher_search_provider/service.cc File chrome/browser/chromeos/launcher_search_provider/service.cc (right): https://codereview.chromium.org/1071093002/diff/200001/chrome/browser/chromeos/launcher_search_provider/service.cc#newcode78 chrome/browser/chromeos/launcher_search_provider/service.cc:78: std::to_string(query_id_))))); query id is internally uint32. why is it ...
5 years, 8 months ago (2015-04-16 08:12:25 UTC) #18
yawano
@satorux: Added comments. PTAL. Thank you! @mgiuca: WDYT about changing the queryId(javascript side) to integer? ...
5 years, 8 months ago (2015-04-16 08:57:24 UTC) #19
satorux1
LGTM, but the description looks too short. Please describe more about the patch. Re query ...
5 years, 8 months ago (2015-04-16 11:03:34 UTC) #20
yawano
On 2015/04/16 11:03:34, satorux1 wrote: > LGTM, but the description looks too short. Please describe ...
5 years, 8 months ago (2015-04-16 11:21:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071093002/220001
5 years, 8 months ago (2015-04-16 11:55:18 UTC) #24
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 8 months ago (2015-04-16 12:59:19 UTC) #25
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 13:00:19 UTC) #26
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/6bbf53d7e8ee5fd25918c112896704d90b077a4b
Cr-Commit-Position: refs/heads/master@{#325428}

Powered by Google App Engine
This is Rietveld 408576698