DescriptionDon't use ::GetFileVersionInfo() in CreateFileVersionInfoForModule()
Currently, base::FileVersionInfo::CreateFileVersionInfoForModule()
calls ::GetModuleFileName and ::GetFileVersionInfo, grabs the loader
lock and potentially touches the disk to obtain the VS_VERSION_INFO
of the module. This is gratuitous for a module that is already loaded.
With this CL, base::FileVersionInfo::CreateFileVersionInfoForModule()
uses base::win::GetResourceFromModule() to get the VS_VERSION_INFO
resource from memory.
First version of this CL: https://codereview.chromium.org/2046583002/
TBR=thestig@chromium.org
BUG=609709
Committed: https://crrev.com/5b7de9e98e0ec2dab0715758d2d5f5d00158a7c0
Cr-Commit-Position: refs/heads/master@{#402985}
Patch Set 1 : identical to https://codereview.chromium.org/2046583002/ #Patch Set 2 : fix build error #
Messages
Total messages: 14 (7 generated)
|