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

Issue 1472963002: win: Only call GetFileVersionInfo() once per module (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: Only call GetFileVersionInfo() once per module This log spam from end_to_end_test.py indicated that GetFileVersionInfo() was being called three times per module: [3076:3424:20151123,102817.290:WARNING module_version.cc:29] GetFileVersionInfoSize: ...\crashpad\out\Release_x64\crashy_program.exe: The specified resource type cannot be found in the image file. (1813) [3076:3424:20151123,102817.291:WARNING module_version.cc:29] GetFileVersionInfoSize: ...\crashpad\out\Release_x64\crashy_program.exe: The specified resource type cannot be found in the image file. (1813) [3076:3424:20151123,102817.291:WARNING module_version.cc:29] GetFileVersionInfoSize: ...\crashpad\out\Release_x64\crashy_program.exe: The specified resource type cannot be found in the image file. (1813) This is unnecessary. It only needs to be called once. We may want to avoid logging in GetModuleVersionAndType() when GetLastError() is ERROR_RESOURCE_TYPE_NOT_FOUND. R=scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/f5c4273d4f67de86d03ef3c09a980a67d757e89c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -21 lines) Patch
M snapshot/win/module_snapshot_win.h View 4 chunks +12 lines, -0 lines 0 comments Download
M snapshot/win/module_snapshot_win.cc View 5 chunks +40 lines, -21 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Mark Mentovai
5 years, 1 month ago (2015-11-23 20:10:41 UTC) #2
scottmg
lgtm
5 years, 1 month ago (2015-11-23 20:44:55 UTC) #4
Mark Mentovai
5 years, 1 month ago (2015-11-23 21:04:29 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f5c4273d4f67de86d03ef3c09a980a67d757e89c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698