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

Issue 2717363003: Add Physical Web WebUI Default Url Icon (Closed)

Created:
3 years, 9 months ago by Ran
Modified:
3 years, 8 months ago
CC:
cco3, chromium-reviews, marq+watch_chromium.org, mmocny, noyau+watch_chromium.org, oshima+watch_chromium.org, pkl (ping after 24h if needed), sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Show a default URL icon instead of a broken image for urls with no icon. BUG=682244 Review-Url: https://codereview.chromium.org/2717363003 Cr-Commit-Position: refs/heads/master@{#460648} Committed: https://chromium.googlesource.com/chromium/src/+/23c9664fcc2ffd6bdcffbca5355ba4cd083f7060

Patch Set 1 #

Total comments: 3

Patch Set 2 : create differnt versions of img #

Total comments: 12

Patch Set 3 : use image directly #

Total comments: 2

Patch Set 4 : fix #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -4 lines) Patch
M chrome/browser/ui/webui/physical_web/physical_web_ui.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
A components/physical_web/resources/ic_link_grey600_36dp.png View 1 2 Binary file 0 comments Download
M components/physical_web/webui/physical_web_ui_constants.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/physical_web/webui/physical_web_ui_constants.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/physical_web/webui/resources/physical_web.js View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M components/resources/physical_web_ui_resources.grdp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/webui/physical_web_ui.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (31 generated)
Ran
3 years, 9 months ago (2017-02-28 21:45:26 UTC) #8
cco3
Commit message should have 50 column limit and not include a full stop (period).
3 years, 9 months ago (2017-02-28 22:05:33 UTC) #11
cco3
Is that png file already in the tree elsewhere? If so, it'd be good if ...
3 years, 9 months ago (2017-02-28 22:06:33 UTC) #12
cco3
https://codereview.chromium.org/2717363003/diff/1/components/physical_web/webui/resources/physical_web.js File components/physical_web/webui/resources/physical_web.js (right): https://codereview.chromium.org/2717363003/diff/1/components/physical_web/webui/resources/physical_web.js#newcode33 components/physical_web/webui/resources/physical_web.js:33: for (var i = 0; i < images.length; i++) ...
3 years, 9 months ago (2017-02-28 22:10:49 UTC) #13
mattreynolds
https://codereview.chromium.org/2717363003/diff/1/chrome/browser/ui/webui/physical_web/physical_web_ui.cc File chrome/browser/ui/webui/physical_web/physical_web_ui.cc (right): https://codereview.chromium.org/2717363003/diff/1/chrome/browser/ui/webui/physical_web/physical_web_ui.cc#newcode34 chrome/browser/ui/webui/physical_web/physical_web_ui.cc:34: IDR_PHYSICAL_WEB_UI_LINK_ICON); Image resources should be added to the components/resources/default_%d_percent ...
3 years, 9 months ago (2017-02-28 22:20:54 UTC) #14
Matt Reynolds
https://codereview.chromium.org/2717363003/diff/20001/components/physical_web/webui/resources/physical_web.js File components/physical_web/webui/resources/physical_web.js (right): https://codereview.chromium.org/2717363003/diff/20001/components/physical_web/webui/resources/physical_web.js#newcode32 components/physical_web/webui/resources/physical_web.js:32: var images = document.getElementsByTagName('img'); Would getElementsByName work here to ...
3 years, 9 months ago (2017-03-02 01:02:39 UTC) #16
mmocny
Agree with Conley & Matt's comments, added a few more. Overall, I think we could ...
3 years, 9 months ago (2017-03-02 17:13:35 UTC) #18
Ran
On 2017/02/28 22:10:49, cco3 wrote: > https://codereview.chromium.org/2717363003/diff/1/components/physical_web/webui/resources/physical_web.js > File components/physical_web/webui/resources/physical_web.js (right): > > https://codereview.chromium.org/2717363003/diff/1/components/physical_web/webui/resources/physical_web.js#newcode33 > ...
3 years, 9 months ago (2017-03-06 18:16:34 UTC) #19
mattreynolds
https://codereview.chromium.org/2717363003/diff/120001/components/physical_web/webui/resources/physical_web.js File components/physical_web/webui/resources/physical_web.js (right): https://codereview.chromium.org/2717363003/diff/120001/components/physical_web/webui/resources/physical_web.js#newcode37 components/physical_web/webui/resources/physical_web.js:37: '../../../../components/resources/default_100_percent/ppp/ic_link_grey600_36dp.png'; ppp? should be physical_web?
3 years, 9 months ago (2017-03-06 19:33:34 UTC) #20
Ran
On 2017/03/06 19:33:34, mattreynolds wrote: > https://codereview.chromium.org/2717363003/diff/120001/components/physical_web/webui/resources/physical_web.js > File components/physical_web/webui/resources/physical_web.js (right): > > https://codereview.chromium.org/2717363003/diff/120001/components/physical_web/webui/resources/physical_web.js#newcode37 > ...
3 years, 9 months ago (2017-03-07 19:35:03 UTC) #21
Ran
I can't find any sample that uses scaled image in html, use the image directly. ...
3 years, 9 months ago (2017-03-23 16:56:26 UTC) #22
mmocny
Approach seems reasonable! However, I have no experience with exposing image resources to webui and ...
3 years, 9 months ago (2017-03-23 20:58:40 UTC) #29
Ran
https://codereview.chromium.org/2717363003/diff/160001/components/physical_web/webui/resources/physical_web.js File components/physical_web/webui/resources/physical_web.js (right): https://codereview.chromium.org/2717363003/diff/160001/components/physical_web/webui/resources/physical_web.js#newcode39 components/physical_web/webui/resources/physical_web.js:39: let img = e.getElementsByTagName('img')[0]; On 2017/03/23 20:58:39, mmocny wrote: ...
3 years, 9 months ago (2017-03-24 17:48:29 UTC) #31
mmocny
lgtm for webui changes. Hoping someone can confirm there is no alternative way to reuse ...
3 years, 9 months ago (2017-03-24 17:55:09 UTC) #32
mattreynolds
lgtm
3 years, 9 months ago (2017-03-24 20:30:37 UTC) #33
Ran
+jochen
3 years, 8 months ago (2017-03-29 04:59:01 UTC) #38
jochen (gone - plz use gerrit)
what part would you like me to review? I'd hope that everything can be covered ...
3 years, 8 months ago (2017-03-29 06:32:37 UTC) #39
Ran
+jochen for chrome/browser/ui/webui/physical_web/physical_web_ui.cc components/resources/physical_web_ui_resources.grdp Sorry for confuse
3 years, 8 months ago (2017-03-29 06:53:44 UTC) #40
jochen (gone - plz use gerrit)
can you please also send a CL that makes /components/physical_web/OWNERS owners for the grdp file ...
3 years, 8 months ago (2017-03-29 06:59:01 UTC) #41
Ran
+eugenebut for ios/chrome/browser/ui/webui/physical_web_ui.cc
3 years, 8 months ago (2017-03-29 07:08:37 UTC) #43
Eugene But (OOO till 7-30)
ios lgtm
3 years, 8 months ago (2017-03-29 15:14:16 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2717363003/220001
3 years, 8 months ago (2017-03-30 03:39:28 UTC) #51
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 03:46:37 UTC) #54
Message was sent while issue was closed.
Committed patchset #5 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/23c9664fcc2ffd6bdcffbca5355b...

Powered by Google App Engine
This is Rietveld 408576698