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

Issue 1246953002: content: make theme_color more resilient to casting issues (Closed)

Created:
5 years, 5 months ago by Lalit Maganti
Modified:
5 years, 4 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

content: perform theme color conversion to signed int earlier * it is easier and clearer to do the conversion explicitly in C++ rather than a hidden implicit conversion in Java. BUG=510402 Committed: https://crrev.com/4349518e48f1ceda5f77be4fdf1ad2ad98ff0b73 Cr-Commit-Position: refs/heads/master@{#342559}

Patch Set 1 #

Patch Set 2 : Fix compile #

Patch Set 3 : Fix compile #

Patch Set 4 : Fix tests #

Patch Set 5 : Fix unit tests #

Total comments: 4

Patch Set 6 : Implement comments #

Total comments: 6

Patch Set 7 : Address avi@'s comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -9 lines) Patch
M content/public/common/manifest.cc View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M content/renderer/manifest/manifest_parser.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/manifest/manifest_parser_unittest.cc View 1 2 3 4 5 4 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
Lalit Maganti
5 years, 5 months ago (2015-07-21 10:30:42 UTC) #2
Lalit Maganti
5 years, 5 months ago (2015-07-21 11:18:03 UTC) #4
mlamouri (slow - plz ping)
5 years, 5 months ago (2015-07-21 11:20:29 UTC) #6
Lalit Maganti
bauerb: this should hopefully be it. Also I do know about expected and actual being ...
5 years, 4 months ago (2015-07-31 09:53:48 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/1246953002/diff/80001/content/renderer/manifest/manifest_parser.cc File content/renderer/manifest/manifest_parser.cc (right): https://codereview.chromium.org/1246953002/diff/80001/content/renderer/manifest/manifest_parser.cc#newcode430 content/renderer/manifest/manifest_parser.cc:430: int32_t signedColor = reinterpret_cast<int32_t&>(color); Local variables are unix_hacker_style. Also, ...
5 years, 4 months ago (2015-07-31 09:58:56 UTC) #8
Lalit Maganti
https://codereview.chromium.org/1246953002/diff/80001/content/renderer/manifest/manifest_parser.cc File content/renderer/manifest/manifest_parser.cc (right): https://codereview.chromium.org/1246953002/diff/80001/content/renderer/manifest/manifest_parser.cc#newcode430 content/renderer/manifest/manifest_parser.cc:430: int32_t signedColor = reinterpret_cast<int32_t&>(color); On 2015/07/31 at 09:58:56, Bernhard ...
5 years, 4 months ago (2015-07-31 10:04:37 UTC) #9
Bernhard Bauer
LGTM, thanks! https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc#newcode1145 content/renderer/manifest/manifest_parser_unittest.cc:1145: } Out of curiosity, do we allow ...
5 years, 4 months ago (2015-07-31 10:07:45 UTC) #10
Lalit Maganti
nasko: could you please review the manifest change? https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc#newcode1145 content/renderer/manifest/manifest_parser_unittest.cc:1145: } ...
5 years, 4 months ago (2015-07-31 10:13:17 UTC) #12
Bernhard Bauer
https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc#newcode1145 content/renderer/manifest/manifest_parser_unittest.cc:1145: } On 2015/07/31 10:13:17, Lalit Maganti wrote: > On ...
5 years, 4 months ago (2015-07-31 10:26:55 UTC) #13
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/1246953002/diff/100001/content/renderer/manifest/manifest_parser_unittest.cc#newcode1145 content/renderer/manifest/manifest_parser_unittest.cc:1145: } On 2015/07/31 at 10:26:55, Bernhard Bauer wrote: ...
5 years, 4 months ago (2015-08-05 13:35:33 UTC) #14
Lalit Maganti
Avi: could you please take a look at the manifest change? I'd like this to ...
5 years, 4 months ago (2015-08-07 13:40:02 UTC) #16
Avi (use Gerrit)
https://codereview.chromium.org/1246953002/diff/100001/content/public/common/manifest.cc File content/public/common/manifest.cc (right): https://codereview.chromium.org/1246953002/diff/100001/content/public/common/manifest.cc#newcode11 content/public/common/manifest.cc:11: static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1; I'm having trouble wrapping my brain ...
5 years, 4 months ago (2015-08-07 14:48:08 UTC) #17
Lalit Maganti
https://codereview.chromium.org/1246953002/diff/100001/content/public/common/manifest.cc File content/public/common/manifest.cc (right): https://codereview.chromium.org/1246953002/diff/100001/content/public/common/manifest.cc#newcode11 content/public/common/manifest.cc:11: static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1; On 2015/08/07 at 14:48:08, Avi wrote: ...
5 years, 4 months ago (2015-08-07 14:54:15 UTC) #18
Avi (use Gerrit)
lgtm Thanks!
5 years, 4 months ago (2015-08-07 20:18:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246953002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246953002/110001
5 years, 4 months ago (2015-08-08 11:17:37 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/106507)
5 years, 4 months ago (2015-08-08 11:42:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246953002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246953002/110001
5 years, 4 months ago (2015-08-09 11:25:45 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 4 months ago (2015-08-09 13:51:03 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-09 13:51:43 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4349518e48f1ceda5f77be4fdf1ad2ad98ff0b73
Cr-Commit-Position: refs/heads/master@{#342559}

Powered by Google App Engine
This is Rietveld 408576698