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

Issue 1017853002: [Icons NTP] Allow chrome-search:// large-icon and fallback-icon hosts to use <view_id>/<restricted_… (Closed)

Created:
5 years, 9 months ago by huangs
Modified:
5 years, 9 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Icons NTP] Allow chrome-search:// large-icon and fallback-icon hosts to use <view_id>/<restricted_id> instead of URL. For chrome-search://thumbnail on NTP we don't allow direct URL queries, but only allow <view_id>/<restricted_id>. We're adding the same features to chrome-search://big-icon and chrome-search://fallback-icon . For the latter we can actually enable both direct URL and ID's (since URL is only parsed to extract first letter in domain name) -- but we don't need this feature right now. BUG=467712 Committed: https://crrev.com/f13db8145e325782133a16f4317242602eab480a Cr-Commit-Position: refs/heads/master@{#321638}

Patch Set 1 #

Total comments: 6

Patch Set 2 : LargeIconUrlParser not in chrome namespace; add tests. #

Total comments: 4

Patch Set 3 : Unifying image flows. #

Total comments: 2

Patch Set 4 : Comment fixes. #

Patch Set 5 : Comment fix. #

Patch Set 6 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -322 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 3 chunks +46 lines, -16 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 3 chunks +155 lines, -100 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_unittest.cc View 1 2 3 4 1 chunk +294 lines, -202 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
huangs
This CL has prerequesite https://codereview.chromium.org/1016833003/ (chrome::kChromeUILargeIconHost), otherwise pretty much independent. PTAL.
5 years, 9 months ago (2015-03-17 20:44:08 UTC) #2
James Hawkins
This CL needs tests. https://codereview.chromium.org/1017853002/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1017853002/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode1383 chrome/renderer/chrome_content_renderer_client.cc:1383: if (url.host() == chrome::kChromeUIFaviconHost) Shouldn't ...
5 years, 9 months ago (2015-03-17 21:46:41 UTC) #3
huangs
Updated, PTAL. https://codereview.chromium.org/1017853002/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1017853002/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode1383 chrome/renderer/chrome_content_renderer_client.cc:1383: if (url.host() == chrome::kChromeUIFaviconHost) I thought you ...
5 years, 9 months ago (2015-03-18 21:43:10 UTC) #4
beaudoin
https://codereview.chromium.org/1017853002/diff/20001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/1017853002/diff/20001/chrome/renderer/searchbox/searchbox.cc#newcode169 chrome/renderer/searchbox/searchbox.cc:169: return true; This looks like three copies of the ...
5 years, 9 months ago (2015-03-19 02:17:35 UTC) #5
huangs
Responded. https://codereview.chromium.org/1017853002/diff/20001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/1017853002/diff/20001/chrome/renderer/searchbox/searchbox.cc#newcode169 chrome/renderer/searchbox/searchbox.cc:169: return true; I have grand plans to refactor ...
5 years, 9 months ago (2015-03-19 02:23:30 UTC) #6
beaudoin
On 2015/03/19 02:23:30, huangs wrote: > Responded. > > https://codereview.chromium.org/1017853002/diff/20001/chrome/renderer/searchbox/searchbox.cc > File chrome/renderer/searchbox/searchbox.cc (right): > ...
5 years, 9 months ago (2015-03-19 02:30:18 UTC) #7
James Hawkins
On 2015/03/19 02:30:18, beaudoin wrote: > On 2015/03/19 02:23:30, huangs wrote: > > Responded. > ...
5 years, 9 months ago (2015-03-19 19:15:16 UTC) #8
huangs
Refactored and added many more unit tests, PTAL. Details: - favicon & thumb, and the ...
5 years, 9 months ago (2015-03-20 02:58:55 UTC) #9
James Hawkins
Looks a lot cleaner, thanks. LGTM with nit. https://codereview.chromium.org/1017853002/diff/40001/chrome/renderer/searchbox/searchbox.h File chrome/renderer/searchbox/searchbox.h (right): https://codereview.chromium.org/1017853002/diff/40001/chrome/renderer/searchbox/searchbox.h#newcode88 chrome/renderer/searchbox/searchbox.h:88: // ...
5 years, 9 months ago (2015-03-20 16:26:44 UTC) #10
huangs
Thanks! Don't worry I'm not off the hook yet for further cleanup per crbug.com/468320 (where ...
5 years, 9 months ago (2015-03-20 17:32:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017853002/100001
5 years, 9 months ago (2015-03-20 20:50:01 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-20 21:30:13 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 21:31:09 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f13db8145e325782133a16f4317242602eab480a
Cr-Commit-Position: refs/heads/master@{#321638}

Powered by Google App Engine
This is Rietveld 408576698