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

Issue 1014853004: [Icons NTP] Add LargeIconUrlParser. (Closed)

Created:
5 years, 9 months ago by huangs
Modified:
5 years, 9 months ago
CC:
chromium-reviews, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Icons NTP] Add LargeIconUrlParser. LargeIconUrlParser is the parser for the path portion of the (upcoming) chrome-search://large-icon end point. This CL adds the code, but only the unit test is active. BUG=467712 Committed: https://crrev.com/915a250403597745e30309705d9cad7ac895fba6 Cr-Commit-Position: refs/heads/master@{#321244}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Use base::StringPiece; fix tests. #

Total comments: 8

Patch Set 3 : Clean up; stop using chrome namespace. #

Patch Set 4 : Fix test. #

Patch Set 5 : Adding few more small test cases. #

Patch Set 6 : Update comment for test case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -0 lines) Patch
M chrome/chrome_common.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/favicon/large_icon_url_parser.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/common/favicon/large_icon_url_parser.cc View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/common/favicon/large_icon_url_parser_unittest.cc View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
huangs
PTAL.
5 years, 9 months ago (2015-03-17 19:54:07 UTC) #2
Roger McFarlane (Chromium)
https://chromiumcodereview.appspot.com/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc File chrome/common/favicon/large_icon_url_parser.cc (right): https://chromiumcodereview.appspot.com/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc#newcode26 chrome/common/favicon/large_icon_url_parser.cc:26: size_t slash = path.find("/", 0); A comment that the ...
5 years, 9 months ago (2015-03-17 20:21:42 UTC) #4
beaudoin
https://codereview.chromium.org/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc File chrome/common/favicon/large_icon_url_parser.cc (right): https://codereview.chromium.org/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc#newcode40 chrome/common/favicon/large_icon_url_parser.cc:40: url_string_ = path.substr(path_index_); url_string_ is a bit misleading here, ...
5 years, 9 months ago (2015-03-17 23:59:14 UTC) #6
huangs
Updated, PTAL. https://codereview.chromium.org/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc File chrome/common/favicon/large_icon_url_parser.cc (right): https://codereview.chromium.org/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc#newcode26 chrome/common/favicon/large_icon_url_parser.cc:26: size_t slash = path.find("/", 0); Added comment ...
5 years, 9 months ago (2015-03-18 18:01:48 UTC) #7
beaudoin
LGTM https://codereview.chromium.org/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc File chrome/common/favicon/large_icon_url_parser.cc (right): https://codereview.chromium.org/1014853004/diff/1/chrome/common/favicon/large_icon_url_parser.cc#newcode40 chrome/common/favicon/large_icon_url_parser.cc:40: url_string_ = path.substr(path_index_); On 2015/03/18 18:01:48, huangs wrote: ...
5 years, 9 months ago (2015-03-18 18:35:29 UTC) #8
huangs
OWNER review to thestig@ (thakis@ seems unavaiable), PTAL. Thanks!
5 years, 9 months ago (2015-03-18 18:42:39 UTC) #10
Lei Zhang
Who will call into this code? Does it belong in chrome/common?
5 years, 9 months ago (2015-03-18 18:45:03 UTC) #11
huangs
This will be called by LargeIconSource (https://codereview.chromium.org/1016833003/) and SearchBox (https://codereview.chromium.org/1017853002/). I'm following the pattern as ...
5 years, 9 months ago (2015-03-18 18:59:24 UTC) #12
Lei Zhang
lgtm with some nits. It looks to me c/c/favicon should really be somewhere in c/b ...
5 years, 9 months ago (2015-03-18 19:00:45 UTC) #13
Lei Zhang
On 2015/03/18 19:00:45, Lei Zhang wrote: > It looks to me c/c/favicon should really be ...
5 years, 9 months ago (2015-03-18 19:02:18 UTC) #14
huangs
Thanks! Committing soon. https://codereview.chromium.org/1014853004/diff/20001/chrome/common/favicon/large_icon_url_parser.h File chrome/common/favicon/large_icon_url_parser.h (right): https://codereview.chromium.org/1014853004/diff/20001/chrome/common/favicon/large_icon_url_parser.h#newcode10 chrome/common/favicon/large_icon_url_parser.h:10: #include "base/gtest_prod_util.h" On 2015/03/18 19:00:45, Lei ...
5 years, 9 months ago (2015-03-18 20:18:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1014853004/100001
5 years, 9 months ago (2015-03-18 22:32:24 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-19 00:07:48 UTC) #19
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 00:08:22 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/915a250403597745e30309705d9cad7ac895fba6
Cr-Commit-Position: refs/heads/master@{#321244}

Powered by Google App Engine
This is Rietveld 408576698