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

Issue 1060733003: Support custom icon in search result. (Closed)

Created:
5 years, 8 months ago by yawano
Modified:
5 years, 7 months ago
CC:
chromium-reviews, tapted, extensions-reviews_chromium.org, 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

Support custom icon in search result. In chrome.launcherSearchProvider API, support iconUrl field in search result. Currently only chrome-extension:// url is supported. BUG=440649, 486236 TEST=out/Release/unit_tests --gtest_filter=ExtensionBadgedIconImageTest.* Committed: https://crrev.com/b2ac90c8cc16a5a0c95f04be2d50ea3732c0f4b9 Cr-Commit-Position: refs/heads/master@{#329371}

Patch Set 1 #

Patch Set 2 : Remove unnecessary includes. #

Total comments: 24

Patch Set 3 : Show warning message in developer console. #

Patch Set 4 : Rename icon_image to image. #

Total comments: 22

Patch Set 5 : Rebase. #

Patch Set 6 : WIP: Add API test. #

Total comments: 4

Patch Set 7 : Remove previous patchset. #

Patch Set 8 : Add unittest. #

Patch Set 9 : Fix comment. #

Total comments: 29

Patch Set 10 : Remove scoped_refptr. #

Patch Set 11 : Remove unnecessary include. #

Patch Set 12 : Rebase. #

Total comments: 2

Patch Set 13 : Fix compile errors of unit_tests. #

Patch Set 14 : Add comment. #

Total comments: 2

Patch Set 15 : Fix BUILD.gn. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+813 lines, -40 lines) Patch
M chrome/browser/chromeos/extensions/launcher_search_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -1 line 0 comments Download
A chrome/browser/chromeos/launcher_search_provider/error_reporter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/launcher_search_provider/error_reporter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/launcher_search_provider/service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/launcher_search_provider/service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.h View 1 2 3 4 5 6 7 8 9 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc View 1 2 3 4 5 6 7 8 9 1 chunk +174 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +269 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.h View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc View 1 2 3 4 5 6 7 8 9 6 chunks +20 lines, -23 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (4 generated)
yawano
PTAL. @satorux: service.cc under chrome/browser/chromeos. Sorry for asking this. I added a TODO not to ...
5 years, 8 months ago (2015-04-21 06:45:44 UTC) #2
satorux1
c/b/chromeos LGTM with a suggestion https://codereview.chromium.org/1060733003/diff/20001/chrome/browser/chromeos/launcher_search_provider/service.cc File chrome/browser/chromeos/launcher_search_provider/service.cc (right): https://codereview.chromium.org/1060733003/diff/20001/chrome/browser/chromeos/launcher_search_provider/service.cc#newcode137 chrome/browser/chromeos/launcher_search_provider/service.cc:137: // TODO(yawano): Cache this ...
5 years, 8 months ago (2015-04-22 01:44:53 UTC) #3
Matt Giuca
https://codereview.chromium.org/1060733003/diff/20001/chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc File chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc (right): https://codereview.chromium.org/1060733003/diff/20001/chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc#newcode30 chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc:30: canvas->DrawImageInt(custom_icon_, 0, 0); Have you tested what happens if ...
5 years, 8 months ago (2015-04-22 03:31:38 UTC) #4
yawano
Thank you for the review! PTAL. @satorux: I added new files and modified files under ...
5 years, 8 months ago (2015-04-22 12:23:47 UTC) #5
satorux1
https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc File chrome/browser/chromeos/extensions/launcher_search_provider.cc (right): https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc#newcode36 chrome/browser/chromeos/extensions/launcher_search_provider.cc:36: CHECK(sender); CHECK -> DCHECK https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h File chrome/browser/chromeos/launcher_search_provider/error_reporter.h (right): https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h#newcode15 ...
5 years, 8 months ago (2015-04-24 01:31:18 UTC) #6
Matt Giuca
https://codereview.chromium.org/1060733003/diff/20001/chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc File chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc (right): https://codereview.chromium.org/1060733003/diff/20001/chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc#newcode71 chrome/browser/ui/app_list/search/launcher_search/extension_badged_icon_image.cc:71: icon_url.host() == extension->id()) { Thanks for adding error checking! ...
5 years, 8 months ago (2015-04-24 04:26:46 UTC) #7
yawano
Thank you for the review. https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc File chrome/browser/chromeos/extensions/launcher_search_provider.cc (right): https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc#newcode19 chrome/browser/chromeos/extensions/launcher_search_provider.cc:19: bool LauncherSearchProviderSetSearchResultsFunction::RunSync() { LauncherSearchProvider ...
5 years, 7 months ago (2015-04-28 12:11:28 UTC) #8
Matt Giuca
https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc File chrome/browser/chromeos/extensions/launcher_search_provider.cc (right): https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc#newcode19 chrome/browser/chromeos/extensions/launcher_search_provider.cc:19: bool LauncherSearchProviderSetSearchResultsFunction::RunSync() { I think writing a unit test ...
5 years, 7 months ago (2015-04-30 01:34:09 UTC) #9
yawano
Thank you for the advise. https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc File chrome/browser/chromeos/extensions/launcher_search_provider.cc (right): https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc#newcode19 chrome/browser/chromeos/extensions/launcher_search_provider.cc:19: bool LauncherSearchProviderSetSearchResultsFunction::RunSync() { I'm ...
5 years, 7 months ago (2015-04-30 03:38:52 UTC) #10
yawano
@mgiuca, @satorux: PTAL. Thank you! https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc File chrome/browser/chromeos/extensions/launcher_search_provider.cc (right): https://codereview.chromium.org/1060733003/diff/60001/chrome/browser/chromeos/extensions/launcher_search_provider.cc#newcode36 chrome/browser/chromeos/extensions/launcher_search_provider.cc:36: CHECK(sender); On 2015/04/24 01:31:18, ...
5 years, 7 months ago (2015-05-01 06:09:55 UTC) #11
satorux1
https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h File chrome/browser/chromeos/launcher_search_provider/error_reporter.h (right): https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h#newcode17 chrome/browser/chromeos/launcher_search_provider/error_reporter.h:17: class ErrorReporter : public base::RefCounted<ErrorReporter> { Why does it ...
5 years, 7 months ago (2015-05-03 23:51:24 UTC) #12
Matt Giuca
https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.cc File chrome/browser/chromeos/launcher_search_provider/error_reporter.cc (right): https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.cc#newcode21 chrome/browser/chromeos/launcher_search_provider/error_reporter.cc:21: if (sender_ == nullptr) DCHECK(sender); The only time sender ...
5 years, 7 months ago (2015-05-05 04:25:31 UTC) #13
yawano
https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h File chrome/browser/chromeos/launcher_search_provider/error_reporter.h (right): https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h#newcode17 chrome/browser/chromeos/launcher_search_provider/error_reporter.h:17: class ErrorReporter : public base::RefCounted<ErrorReporter> { This wasn't ref ...
5 years, 7 months ago (2015-05-07 02:27:17 UTC) #14
Matt Giuca
https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h File chrome/browser/chromeos/launcher_search_provider/error_reporter.h (right): https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h#newcode17 chrome/browser/chromeos/launcher_search_provider/error_reporter.h:17: class ErrorReporter : public base::RefCounted<ErrorReporter> { I see. Right, ...
5 years, 7 months ago (2015-05-07 03:24:03 UTC) #15
yawano
Thank you for the review! PTAL. https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.cc File chrome/browser/chromeos/launcher_search_provider/error_reporter.cc (right): https://codereview.chromium.org/1060733003/diff/160001/chrome/browser/chromeos/launcher_search_provider/error_reporter.cc#newcode21 chrome/browser/chromeos/launcher_search_provider/error_reporter.cc:21: if (sender_ == ...
5 years, 7 months ago (2015-05-07 06:24:55 UTC) #16
Matt Giuca
lgtm! Thanks Yuki.
5 years, 7 months ago (2015-05-11 03:46:40 UTC) #17
yawano
On 2015/05/11 03:46:40, Matt Giuca wrote: > lgtm! Thanks Yuki. Thank you!
5 years, 7 months ago (2015-05-11 03:49:21 UTC) #18
yawano
@satorux: We've added significant amount of changes after your first lgtm. PTAL files under chrome/browser/chromeos. ...
5 years, 7 months ago (2015-05-11 03:52:43 UTC) #19
Matt Giuca
Please add 486236 to the BUG= line (comma-separated), so that that bug gets updated when ...
5 years, 7 months ago (2015-05-11 05:52:26 UTC) #20
yawano
On 2015/05/11 05:52:26, Matt Giuca wrote: > Please add 486236 to the BUG= line (comma-separated), ...
5 years, 7 months ago (2015-05-11 05:56:47 UTC) #21
Matt Giuca
I think that a simple fix is to just surround the offending code by #if ...
5 years, 7 months ago (2015-05-11 06:25:01 UTC) #22
satorux1
c/b/chromeos LGTM with a request https://codereview.chromium.org/1060733003/diff/220001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h File chrome/browser/chromeos/launcher_search_provider/error_reporter.h (right): https://codereview.chromium.org/1060733003/diff/220001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h#newcode25 chrome/browser/chromeos/launcher_search_provider/error_reporter.h:25: virtual scoped_ptr<ErrorReporter> Duplicate(); add ...
5 years, 7 months ago (2015-05-11 06:32:27 UTC) #23
yawano
@satorux: Thank you! https://codereview.chromium.org/1060733003/diff/220001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h File chrome/browser/chromeos/launcher_search_provider/error_reporter.h (right): https://codereview.chromium.org/1060733003/diff/220001/chrome/browser/chromeos/launcher_search_provider/error_reporter.h#newcode25 chrome/browser/chromeos/launcher_search_provider/error_reporter.h:25: virtual scoped_ptr<ErrorReporter> Duplicate(); On 2015/05/11 06:32:27, ...
5 years, 7 months ago (2015-05-11 06:40:29 UTC) #24
yawano
@thestig: PTAL chrome_tests_unit.gypi since it's not just adding or renaming files. @mgiuca: I added a ...
5 years, 7 months ago (2015-05-11 06:44:52 UTC) #26
Matt Giuca
I really want to avoid locking this feature into ChromeOS only. During the initial reviews, ...
5 years, 7 months ago (2015-05-11 07:05:03 UTC) #27
yawano
I don't think it becomes big work if we change gypi file. Just changing and ...
5 years, 7 months ago (2015-05-11 07:22:27 UTC) #28
Matt Giuca
OK slgtm.
5 years, 7 months ago (2015-05-11 07:38:24 UTC) #29
Lei Zhang
https://codereview.chromium.org/1060733003/diff/260001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/1060733003/diff/260001/chrome/chrome_tests_unit.gypi#newcode2612 chrome/chrome_tests_unit.gypi:2612: ['enable_app_list==1 and chromeos==1', { You need to make the ...
5 years, 7 months ago (2015-05-11 19:48:07 UTC) #30
yawano
@thestig: Thank you for the review! PTAL. https://codereview.chromium.org/1060733003/diff/260001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/1060733003/diff/260001/chrome/chrome_tests_unit.gypi#newcode2612 chrome/chrome_tests_unit.gypi:2612: ['enable_app_list==1 and ...
5 years, 7 months ago (2015-05-12 02:37:23 UTC) #31
Lei Zhang
lgtm
5 years, 7 months ago (2015-05-12 04:49:00 UTC) #32
yawano
On 2015/05/12 04:49:00, Lei Zhang wrote: > lgtm Thank you!
5 years, 7 months ago (2015-05-12 07:08:23 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060733003/280001
5 years, 7 months ago (2015-05-12 07:08:46 UTC) #36
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 7 months ago (2015-05-12 08:07:43 UTC) #37
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 08:08:24 UTC) #38
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/b2ac90c8cc16a5a0c95f04be2d50ea3732c0f4b9
Cr-Commit-Position: refs/heads/master@{#329371}

Powered by Google App Engine
This is Rietveld 408576698