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

Issue 1405323003: win: Add and use GET_FUNCTION() and GET_FUNCTION_REQUIRED() (Closed)

Created:
5 years, 2 months ago by Mark Mentovai
Modified:
5 years, 2 months 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 and use GET_FUNCTION() and GET_FUNCTION_REQUIRED() These wrap the GetProcAddress(LoadLibrary(), …) idiom into macros that are much less wordy. TEST=crashpad_util_test GetFunction.GetFunction and all others R=scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/d075a9eb2e05359ab2555c7a0d0d9820f8b31aa4

Patch Set 1 #

Total comments: 1

Patch Set 2 : -lpsapi.lib (doesn't work) #

Patch Set 3 : Address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -79 lines) Patch
M handler/win/crashy_test_program.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M snapshot/win/pe_image_reader_test.cc View 2 chunks +3 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/critical_section_with_debug_info.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M util/win/exception_handler_server.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A util/win/get_function.h View 1 2 1 chunk +121 lines, -0 lines 0 comments Download
A + util/win/get_function.cc View 2 1 chunk +16 lines, -22 lines 0 comments Download
A util/win/get_function_test.cc View 1 chunk +78 lines, -0 lines 0 comments Download
M util/win/nt_internals.cc View 5 chunks +23 lines, -28 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 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Mark Mentovai
When you said my mind was in a terrible place in https://codereview.chromium.org/1405243002/, I got the ...
5 years, 2 months ago (2015-10-17 02:21:01 UTC) #2
scottmg
Nice! LGTM. For GetModuleHandle() vs. LoadLibrary() normally you'd use GetModuleHandle() for the "must be loaded ...
5 years, 2 months ago (2015-10-19 17:28:06 UTC) #3
Mark Mentovai
I think that the only one we might actually load is psapi.dll. Can we switch ...
5 years, 2 months ago (2015-10-19 17:35:57 UTC) #4
Mark Mentovai
Patch set 2 uses GetModuleHandle() and -lpsapi.lib, but it doesn’t actually work. Probably it’s because ...
5 years, 2 months ago (2015-10-19 17:58:53 UTC) #5
scottmg
On 2015/10/19 17:58:53, Mark Mentovai wrote: > Patch set 2 uses GetModuleHandle() and -lpsapi.lib, but ...
5 years, 2 months ago (2015-10-19 18:05:29 UTC) #6
Mark Mentovai
Updated per feedback. I like GetModuleHandle() better, but at this point it’s not worth parameterizing.
5 years, 2 months ago (2015-10-19 18:14:55 UTC) #8
scottmg
lgtm
5 years, 2 months ago (2015-10-19 18:19:39 UTC) #9
Mark Mentovai
5 years, 2 months ago (2015-10-19 18:32:13 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
d075a9eb2e05359ab2555c7a0d0d9820f8b31aa4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698