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

Issue 2821028: Up the warnings in ipc (take 2)... (Closed)

Created:
10 years, 5 months ago by TVL
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, John Grabowski, jam, Paweł Hajdan Jr.
Visibility:
Public.

Description

Up the warnings in ipc (take 2) - add chromium_code:1 to the GYP file - Fix some unittest compares of literal 0 to apis that return size_t - initializer order match declared order - type_id is a uint32, so fix up comparison warnings by using the right type in the test code. - duplicate a type cast used in the ipc headers into the ipc impl to make windows happy. - msvc warns about getenv, avoid it. BUG=none TEST=everything still builds/works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53468

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -15 lines) Patch
M ipc/ipc.gyp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ipc/ipc_fuzzing_tests.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M ipc/ipc_logging.cc View 1 1 chunk +11 lines, -1 line 3 comments Download
M ipc/ipc_message_utils.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/sync_socket_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
TVL
seems to pass a clobber win try bot now
10 years, 5 months ago (2010-07-02 16:28:20 UTC) #1
Mark Mentovai
LGTM
10 years, 5 months ago (2010-07-02 16:38:17 UTC) #2
TVL
Updated to today's trunk, has now pass windows and linux try bots.
10 years, 5 months ago (2010-07-23 14:14:32 UTC) #3
Mark Mentovai
LGO. I have a question, though. http://codereview.chromium.org/2821028/diff/10001/11004 File ipc/ipc_logging.cc (right): http://codereview.chromium.org/2821028/diff/10001/11004#newcode58 ipc/ipc_logging.cc:58: bool logging_env_var_set = ...
10 years, 5 months ago (2010-07-23 15:07:28 UTC) #4
TVL
10 years, 5 months ago (2010-07-23 15:26:55 UTC) #5
http://codereview.chromium.org/2821028/diff/10001/11004
File ipc/ipc_logging.cc (right):

http://codereview.chromium.org/2821028/diff/10001/11004#newcode58
ipc/ipc_logging.cc:58: bool logging_env_var_set = (requiredSize != 0);
On 2010/07/23 15:07:28, Mark Mentovai wrote:
> I don’t know if requiredSize will be 0 (or something else) if
CHROME_IPC_LOGGING
> is set but empty. If it’s set but empty, we should still have
> logging_env_var_set true, as in the POSIX case.

From what msdn says, if you fetch the value, it will come back with a \0 on the
end. So setting it to no value, will resulting in it needing 1 byte to hold the
string terminator for that empty value.

Powered by Google App Engine
This is Rietveld 408576698