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

Issue 145873006: ui/base/resource: Roll our own version of ReadBigEndian() function. (Closed)

Created:
6 years, 10 months ago by tfarina
Modified:
6 years, 10 months ago
CC:
chromium-reviews, willchan no longer on Chromium
Visibility:
Public.

Description

ui/base/resource: Remove dependency on net's big_endian implementation. To remove this dependency we ended up moving big_endian* to base/, since besides ui/, big_endian is also used by other top-level modules: chrome/utility/, cloud_print, media/cast This way we removed one more net dependency from ui/base/. BUG=299841 TEST=ui_unittests R=tony@chromium.org,mark@chromium.org,hclam@chromium.org,vitalybuka@chromium.org TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253510

Patch Set 1 #

Total comments: 4

Patch Set 2 : base/big_endian #

Total comments: 2

Patch Set 3 : reinterpret_cast<char*> #

Patch Set 4 : fix for gcp20_device #

Total comments: 8

Patch Set 5 : rm unnecessary big_endian.h includes #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -463 lines) Patch
M base/base.gyp View 1 2 2 chunks +1 line, -1 line 0 comments Download
M base/base.gypi View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
A + base/big_endian.h View 1 2 4 chunks +10 lines, -11 lines 0 comments Download
A + base/big_endian.cc View 1 2 3 chunks +7 lines, -8 lines 0 comments Download
A + base/big_endian_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/utility/cloud_print/pwg_encoder.cc View 1 2 chunks +14 lines, -14 lines 0 comments Download
M cloud_print/gcp20/prototype/dns_packet_parser.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M cloud_print/gcp20/prototype/dns_response_builder.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M cloud_print/gcp20/prototype/dns_sd_server.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M media/cast/logging/log_serializer.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/logging/logging_impl.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M media/cast/rtcp/rtcp.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M media/cast/rtcp/rtcp_sender.cc View 1 2 15 chunks +29 lines, -17 lines 0 comments Download
M media/cast/rtcp/rtcp_utility.cc View 1 2 23 chunks +45 lines, -23 lines 0 comments Download
M media/cast/rtcp/test_rtcp_packet_builder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/rtcp/test_rtcp_packet_builder.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/rtp_receiver/rtp_parser/rtp_parser.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M media/cast/rtp_receiver/rtp_parser/test/rtp_packet_builder.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/rtp_receiver/rtp_receiver.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M media/cast/test/sender.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M media/cast/transport/rtcp/rtcp_builder.cc View 1 2 6 chunks +11 lines, -6 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/test/rtp_header_parser.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_sender.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
D net/base/big_endian.h View 1 1 chunk +0 lines, -103 lines 0 comments Download
D net/base/big_endian.cc View 1 1 chunk +0 lines, -98 lines 0 comments Download
D net/base/big_endian_unittest.cc View 1 1 chunk +0 lines, -100 lines 0 comments Download
M net/dns/dns_query.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M net/dns/dns_response.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M net/dns/dns_test_util.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/dns_transaction.cc View 1 4 chunks +4 lines, -3 lines 0 comments Download
M net/dns/dns_transaction_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M net/dns/record_rdata.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M net/dns/record_rdata.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/net.gyp View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M net/websockets/websocket_basic_stream_test.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/websockets/websocket_channel.cc View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M net/websockets/websocket_frame.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M net/websockets/websocket_frame_parser.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M sql/test/test_helpers.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_unittest.cc View 1 4 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
tfarina
https://codereview.chromium.org/145873006/diff/1/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/145873006/diff/1/ui/base/resource/resource_bundle.cc#newcode764 ui/base/resource/resource_bundle.cc:764: uint32_t ReadBigEndian32(const void* ptr) { Where I should put ...
6 years, 10 months ago (2014-02-12 02:08:21 UTC) #1
tony
https://codereview.chromium.org/145873006/diff/1/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/145873006/diff/1/ui/base/resource/resource_bundle.cc#newcode764 ui/base/resource/resource_bundle.cc:764: uint32_t ReadBigEndian32(const void* ptr) { On 2014/02/12 02:08:22, tfarina ...
6 years, 10 months ago (2014-02-12 02:23:02 UTC) #2
tfarina
On 2014/02/12 02:23:02, tony wrote: > https://codereview.chromium.org/145873006/diff/1/ui/base/resource/resource_bundle.cc#newcode764 > ui/base/resource/resource_bundle.cc:764: uint32_t ReadBigEndian32(const void* > ptr) { ...
6 years, 10 months ago (2014-02-12 02:27:40 UTC) #3
tony
On 2014/02/12 02:27:40, tfarina wrote: > On 2014/02/12 02:23:02, tony wrote: > > > https://codereview.chromium.org/145873006/diff/1/ui/base/resource/resource_bundle.cc#newcode764 ...
6 years, 10 months ago (2014-02-12 02:29:43 UTC) #4
tfarina
Will, Tony suggested I add you to review PS1. We want to know your opinion ...
6 years, 10 months ago (2014-02-12 02:40:50 UTC) #5
tfarina
Mark, I moved it to src/base.
6 years, 10 months ago (2014-02-16 14:17:14 UTC) #6
Mark Mentovai
https://codereview.chromium.org/145873006/diff/140001/base/big_endian.h File base/big_endian.h (right): https://codereview.chromium.org/145873006/diff/140001/base/big_endian.h#newcode54 base/big_endian.h:54: BigEndianReader(const void* buf, size_t len); I would be more ...
6 years, 10 months ago (2014-02-18 17:14:30 UTC) #7
tfarina
PTAL. +Alpha for media/cast/ changes! https://codereview.chromium.org/145873006/diff/140001/base/big_endian.h File base/big_endian.h (right): https://codereview.chromium.org/145873006/diff/140001/base/big_endian.h#newcode54 base/big_endian.h:54: BigEndianReader(const void* buf, size_t ...
6 years, 10 months ago (2014-02-23 03:45:00 UTC) #8
Mark Mentovai
Check the Windows try bot. The other bots are satisfied.
6 years, 10 months ago (2014-02-23 05:21:05 UTC) #9
tfarina
On 2014/02/23 05:21:05, Mark Mentovai wrote: > Check the Windows try bot. The other bots ...
6 years, 10 months ago (2014-02-23 14:56:41 UTC) #10
Mark Mentovai
LGTM
6 years, 10 months ago (2014-02-23 16:40:30 UTC) #11
Alpha Left Google
media/cast LGTM if it compiles on all platforms. I noticed the removal of reinterpret_cast from ...
6 years, 10 months ago (2014-02-24 19:22:36 UTC) #12
Alpha Left Google
media/cast LGTM if it compiles on all platforms. I noticed the removal of reinterpret_cast from ...
6 years, 10 months ago (2014-02-24 19:22:37 UTC) #13
tony
ui/base/resource LGTM
6 years, 10 months ago (2014-02-24 19:28:19 UTC) #14
tfarina
+Vitaly, for cloud_print/ OWNERS.
6 years, 10 months ago (2014-02-24 19:32:19 UTC) #15
tfarina
I updated the CL description to actually reflect the code changes here.
6 years, 10 months ago (2014-02-24 19:35:32 UTC) #16
Alpha Left Google
Sorry my bad. The reinterpret_cast is there. So LGTM.
6 years, 10 months ago (2014-02-24 20:07:29 UTC) #17
Vitaly Buka (NO REVIEWS)
lgtm
6 years, 10 months ago (2014-02-24 20:18:35 UTC) #18
tfarina
Remove some unused big_endian.h includes. https://codereview.chromium.org/145873006/diff/620001/cloud_print/gcp20/prototype/dns_sd_server.cc File cloud_print/gcp20/prototype/dns_sd_server.cc (right): https://codereview.chromium.org/145873006/diff/620001/cloud_print/gcp20/prototype/dns_sd_server.cc#newcode10 cloud_print/gcp20/prototype/dns_sd_server.cc:10: #include "base/big_endian.h" note to ...
6 years, 10 months ago (2014-02-26 02:54:23 UTC) #19
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 10 months ago (2014-02-26 03:10:05 UTC) #20
tfarina
TBRing Ben for the rest!
6 years, 10 months ago (2014-02-26 03:10:39 UTC) #21
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 04:39:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/145873006/800001
6 years, 10 months ago (2014-02-26 04:45:53 UTC) #23
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:29:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/145873006/800001
6 years, 10 months ago (2014-02-26 05:41:05 UTC) #25
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 18:15:01 UTC) #26
Message was sent while issue was closed.
Change committed as 253510

Powered by Google App Engine
This is Rietveld 408576698