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

Issue 1422503015: win: Add HandleToInt() and IntToHandle() (Closed)

Created:
5 years, 1 month ago by Mark Mentovai
Modified:
5 years, 1 month ago
Reviewers:
scottmg
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: Add HandleToInt() and IntToHandle() This consolidates all of the twisted casts and comments that discuss how HANDLEs are really only 32 bits wide even in 64-bit processes on 64-bit operating systems into a single location. R=scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/2eeaa3ac549a6646031cac05f8d1424ff4946157

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add a comment about the choice of int over unsigned int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -48 lines) Patch
M client/crashpad_client_win.cc View 3 chunks +8 lines, -11 lines 0 comments Download
M handler/main.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M test/win/win_child_process.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M util/util.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M util/util_test.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M util/win/exception_handler_server.cc View 2 chunks +7 lines, -6 lines 0 comments Download
A util/win/handle.h View 1 chunk +65 lines, -0 lines 0 comments Download
A util/win/handle.cc View 1 1 chunk +36 lines, -0 lines 0 comments Download
A util/win/handle_test.cc View 1 chunk +53 lines, -0 lines 0 comments Download
M util/win/process_info.h View 1 chunk +0 lines, -3 lines 0 comments Download
M util/win/process_info.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M util/win/process_info_test.cc View 6 chunks +7 lines, -4 lines 0 comments Download
M util/win/registration_protocol_win.h View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Mark Mentovai
5 years, 1 month ago (2015-11-05 17:35:38 UTC) #2
scottmg
Nice, good idea. https://codereview.chromium.org/1422503015/diff/1/util/win/handle.cc File util/win/handle.cc (right): https://codereview.chromium.org/1422503015/diff/1/util/win/handle.cc#newcode24 util/win/handle.cc:24: return base::checked_cast<int>(reinterpret_cast<intptr_t>(handle)); I would have made ...
5 years, 1 month ago (2015-11-05 18:03:18 UTC) #3
Mark Mentovai
https://codereview.chromium.org/1422503015/diff/1/util/win/handle.cc File util/win/handle.cc (right): https://codereview.chromium.org/1422503015/diff/1/util/win/handle.cc#newcode24 util/win/handle.cc:24: return base::checked_cast<int>(reinterpret_cast<intptr_t>(handle)); scottmg wrote: > I would have made ...
5 years, 1 month ago (2015-11-05 18:26:14 UTC) #4
scottmg
lgtm https://codereview.chromium.org/1422503015/diff/1/util/win/handle.cc File util/win/handle.cc (right): https://codereview.chromium.org/1422503015/diff/1/util/win/handle.cc#newcode24 util/win/handle.cc:24: return base::checked_cast<int>(reinterpret_cast<intptr_t>(handle)); On 2015/11/05 18:26:14, Mark Mentovai wrote: ...
5 years, 1 month ago (2015-11-05 18:40:04 UTC) #5
Mark Mentovai
5 years, 1 month ago (2015-11-05 19:00:33 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
2eeaa3ac549a6646031cac05f8d1424ff4946157 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698