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

Issue 1235883007: manifest: add theme_color value to the manifest (Closed)

Created:
5 years, 5 months ago by Lalit Maganti
Modified:
5 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-manifest_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

manifest: add theme_color value to the manifest Add parsing capabilities of a theme_color value in a website's manifest to the manifest parser. Store this value in the manifest object. BUG=510402 Committed: https://crrev.com/48cfd739f58bfdc72a98167991153cf0882c93a2 Cr-Commit-Position: refs/heads/master@{#339444}

Patch Set 1 #

Patch Set 2 : Fix Mounir's comments on old patch #

Patch Set 3 : Reflect change in Blink patch #

Total comments: 36

Patch Set 4 : Fix Mounir's comments #

Patch Set 5 : Change type for invalid theme color #

Patch Set 6 : Fix some small mistakes #

Total comments: 15

Patch Set 7 : Fix second round of Mounir's comments #

Patch Set 8 : Use UTF16ToUTF8 instead of assuming ASCII #

Total comments: 2

Patch Set 9 : Fix Mounir's comment #

Total comments: 5

Patch Set 10 : Fix nasko's comments #

Total comments: 4

Patch Set 11 : Fix nasko's comments #

Total comments: 3

Patch Set 12 : Add braces to if statement #

Patch Set 13 : Fix color range check #

Patch Set 14 : Remove color from checks #

Total comments: 2

Patch Set 15 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -4 lines) Patch
M content/browser/manifest/manifest_manager_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/manifest_manager_messages.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/manifest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download
M content/public/common/manifest.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M content/renderer/manifest/manifest_parser.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/manifest/manifest_parser.cc View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -0 lines 0 comments Download
M content/renderer/manifest/manifest_parser_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +161 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (4 generated)
Lalit Maganti
5 years, 5 months ago (2015-07-15 14:53:10 UTC) #2
Lalit Maganti
Mounir: this should now be good to go I think.
5 years, 5 months ago (2015-07-15 15:43:58 UTC) #3
Lalit Maganti
5 years, 5 months ago (2015-07-15 16:31:44 UTC) #4
mlamouri (slow - plz ping)
Looks pretty good. A lot of small mistakes here and there but the logic is ...
5 years, 5 months ago (2015-07-16 12:35:41 UTC) #5
Lalit Maganti
https://codereview.chromium.org/1235883007/diff/40001/content/public/common/manifest.cc File content/public/common/manifest.cc (right): https://codereview.chromium.org/1235883007/diff/40001/content/public/common/manifest.cc#newcode28 content/public/common/manifest.cc:28: theme_color(-1), On 2015/07/16 at 12:35:40, Mounir Lamouri wrote: > ...
5 years, 5 months ago (2015-07-16 14:49:02 UTC) #6
mlamouri (slow - plz ping)
Thanks, it looks way better! I mostly want you to add a couple of tests ...
5 years, 5 months ago (2015-07-16 14:53:32 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/1235883007/diff/100001/content/renderer/manifest/manifest_parser.cc File content/renderer/manifest/manifest_parser.cc (right): https://codereview.chromium.org/1235883007/diff/100001/content/renderer/manifest/manifest_parser.cc#newcode426 content/renderer/manifest/manifest_parser.cc:426: "invalid color specified."); On 2015/07/16 at 14:53:31, Mounir Lamouri ...
5 years, 5 months ago (2015-07-16 15:00:49 UTC) #8
Lalit Maganti
https://codereview.chromium.org/1235883007/diff/100001/content/common/manifest_manager_messages.h File content/common/manifest_manager_messages.h (right): https://codereview.chromium.org/1235883007/diff/100001/content/common/manifest_manager_messages.h#newcode38 content/common/manifest_manager_messages.h:38: IPC_STRUCT_TRAITS_MEMBER(theme_color) On 2015/07/16 at 14:53:31, Mounir Lamouri wrote: > ...
5 years, 5 months ago (2015-07-16 15:12:29 UTC) #9
Lalit Maganti
nasko@: could you please review the following: content/common/manifest_manager_messages.h content/public/common/manifest.cc content/public/common/manifest.h
5 years, 5 months ago (2015-07-16 16:57:25 UTC) #11
mlamouri (slow - plz ping)
lgtm! Thanks! One last comment below that I should have caught before, sorry. https://codereview.chromium.org/1235883007/diff/140001/content/renderer/manifest/manifest_parser.cc File ...
5 years, 5 months ago (2015-07-16 17:19:00 UTC) #12
Lalit Maganti
https://codereview.chromium.org/1235883007/diff/140001/content/renderer/manifest/manifest_parser.cc File content/renderer/manifest/manifest_parser.cc (right): https://codereview.chromium.org/1235883007/diff/140001/content/renderer/manifest/manifest_parser.cc#newcode425 content/renderer/manifest/manifest_parser.cc:425: base::UTF16ToUTF8(theme_color.string()) + On 2015/07/16 at 17:19:00, Mounir Lamouri wrote: ...
5 years, 5 months ago (2015-07-16 18:37:23 UTC) #13
nasko
This CL doesn't have the consumer of the theme color, just the parsing. We usually ...
5 years, 5 months ago (2015-07-17 09:48:53 UTC) #14
Lalit Maganti
On 2015/07/17 at 09:48:53, nasko wrote: > This CL doesn't have the consumer of the ...
5 years, 5 months ago (2015-07-17 10:29:07 UTC) #15
Lalit Maganti
nasko@: comments you raised should be fixed. https://codereview.chromium.org/1235883007/diff/160001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/1235883007/diff/160001/content/renderer/manifest/manifest_parser_unittest.cc#newcode384 content/renderer/manifest/manifest_parser_unittest.cc:384: // Don't ...
5 years, 5 months ago (2015-07-17 10:30:00 UTC) #16
mlamouri (slow - plz ping)
BTW nasko@, theme_color is being used here: https://codereview.chromium.org/1234653004
5 years, 5 months ago (2015-07-17 13:26:50 UTC) #17
nasko
https://codereview.chromium.org/1235883007/diff/160001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/1235883007/diff/160001/content/renderer/manifest/manifest_parser_unittest.cc#newcode434 content/renderer/manifest/manifest_parser_unittest.cc:434: // Parse fails if multiple values for theme_color are ...
5 years, 5 months ago (2015-07-17 16:36:18 UTC) #18
Lalit Maganti
My point was more that this test would break unnecessarily if the JSON parser were ...
5 years, 5 months ago (2015-07-18 17:52:05 UTC) #19
mlamouri (slow - plz ping)
On 2015/07/17 at 16:36:18, nasko wrote: > https://codereview.chromium.org/1235883007/diff/160001/content/renderer/manifest/manifest_parser_unittest.cc > File content/renderer/manifest/manifest_parser_unittest.cc (right): > > https://codereview.chromium.org/1235883007/diff/160001/content/renderer/manifest/manifest_parser_unittest.cc#newcode434 ...
5 years, 5 months ago (2015-07-20 09:21:16 UTC) #20
mlamouri (slow - plz ping)
5 years, 5 months ago (2015-07-20 09:21:22 UTC) #21
nasko
https://codereview.chromium.org/1235883007/diff/180001/content/browser/manifest/manifest_manager_host.cc File content/browser/manifest/manifest_manager_host.cc (right): https://codereview.chromium.org/1235883007/diff/180001/content/browser/manifest/manifest_manager_host.cc#newcode139 content/browser/manifest/manifest_manager_host.cc:139: if (manifest.theme_color < 0) On 2015/07/18 17:52:05, Lalit Maganti ...
5 years, 5 months ago (2015-07-20 09:22:17 UTC) #22
Lalit Maganti
On 2015/07/20 at 09:22:17, nasko wrote: > https://codereview.chromium.org/1235883007/diff/180001/content/browser/manifest/manifest_manager_host.cc > File content/browser/manifest/manifest_manager_host.cc (right): > > https://codereview.chromium.org/1235883007/diff/180001/content/browser/manifest/manifest_manager_host.cc#newcode139 ...
5 years, 5 months ago (2015-07-20 10:27:17 UTC) #23
nasko
On 2015/07/20 10:27:17, Lalit Maganti wrote: > On 2015/07/20 at 09:22:17, nasko wrote: > > ...
5 years, 5 months ago (2015-07-20 11:04:47 UTC) #24
nasko
https://codereview.chromium.org/1235883007/diff/200001/content/browser/manifest/manifest_manager_host.cc File content/browser/manifest/manifest_manager_host.cc (right): https://codereview.chromium.org/1235883007/diff/200001/content/browser/manifest/manifest_manager_host.cc#newcode141 content/browser/manifest/manifest_manager_host.cc:141: || manifest.theme_color > SK_ColorWHITE) Need {} around the body ...
5 years, 5 months ago (2015-07-20 11:07:03 UTC) #25
Lalit Maganti
Hopefully this should be good now. https://codereview.chromium.org/1235883007/diff/200001/content/public/common/manifest.h File content/public/common/manifest.h (right): https://codereview.chromium.org/1235883007/diff/200001/content/public/common/manifest.h#newcode117 content/public/common/manifest.h:117: int64_t theme_color; On ...
5 years, 5 months ago (2015-07-20 11:23:49 UTC) #26
nasko
I think it is good. I'd like to see some comments that will make the ...
5 years, 5 months ago (2015-07-20 12:02:00 UTC) #27
Lalit Maganti
On 2015/07/20 at 12:02:00, nasko wrote: > I think it is good. I'd like to ...
5 years, 5 months ago (2015-07-20 12:36:06 UTC) #28
nasko
LGTM
5 years, 5 months ago (2015-07-20 12:38:09 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1235883007/280001
5 years, 5 months ago (2015-07-20 12:39:45 UTC) #32
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 5 months ago (2015-07-20 13:36:31 UTC) #33
commit-bot: I haz the power
5 years, 5 months ago (2015-07-20 13:37:44 UTC) #34
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/48cfd739f58bfdc72a98167991153cf0882c93a2
Cr-Commit-Position: refs/heads/master@{#339444}

Powered by Google App Engine
This is Rietveld 408576698