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

Issue 2635953002: Use loader-based binding of GetInstallDetailsPayload for install_static. (Closed)

Created:
3 years, 11 months ago by grt (UTC plus 2)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, pennymac+watch_chromium.org, native-client-reviews_googlegroups.com, caitkp+watch_chromium.org, Will Harris
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use loader-based binding of GetInstallDetailsPayload for install_static. The previous strategy of using GetModuleHandle + GetProcAddress was overly complex and was causing some 3rd party software to tip renderers over. BUG=674541 Review-Url: https://codereview.chromium.org/2635953002 Cr-Commit-Position: refs/heads/master@{#444547} Committed: https://chromium.googlesource.com/chromium/src/+/a47e8657c739f0ee2f11aecbd3558335c639a5eb

Patch Set 1 #

Patch Set 2 : better #

Total comments: 4

Patch Set 3 : use .def file; fix linking #

Total comments: 2

Patch Set 4 : scottmg comments #

Patch Set 5 : sync to position 444298 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -31 lines) Patch
M chrome/BUILD.gn View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/app/chrome_exe_main_win.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/app/chrome_main.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_watcher/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_watcher/chrome_watcher_main.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/install_static/BUILD.gn View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/install_static/get_install_details_payload.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/install_static/initialize_from_primary_module.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/install_static/initialize_from_primary_module.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/install_static/install_details.h View 1 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/install_static/install_details.cc View 1 1 chunk +3 lines, -8 lines 0 comments Download
M chrome_elf/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome_elf/chrome_elf_main.cc View 1 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 51 (31 generated)
grt (UTC plus 2)
Hi Siggi. Would you take a look, please?
3 years, 11 months ago (2017-01-16 16:54:01 UTC) #9
Sigurður Ásgeirsson
I think you need to add the exported functions to the chrome_elf DEF file for ...
3 years, 11 months ago (2017-01-16 18:28:59 UTC) #12
Sigurður Ásgeirsson
looks good for the most part, but doesn't seem to be linking ATM? https://codereview.chromium.org/2635953002/diff/20001/chrome/install_static/get_install_details_payload.cc File ...
3 years, 11 months ago (2017-01-16 18:31:58 UTC) #13
grt (UTC plus 2)
Thanks. PTAL. https://codereview.chromium.org/2635953002/diff/20001/chrome/install_static/get_install_details_payload.cc File chrome/install_static/get_install_details_payload.cc (right): https://codereview.chromium.org/2635953002/diff/20001/chrome/install_static/get_install_details_payload.cc#newcode7 chrome/install_static/get_install_details_payload.cc:7: extern "C" const install_static::InstallDetails::Payload __declspec(dllexport) * On ...
3 years, 11 months ago (2017-01-16 20:27:33 UTC) #16
grt (UTC plus 2)
+OWNERS: robertshield: chrome_elf scottmg: chrome/BUILD.gn Thanks
3 years, 11 months ago (2017-01-16 20:30:53 UTC) #20
Sigurður Ásgeirsson
LGTM - except I think you forgot to add the .DEF file to this CL?
3 years, 11 months ago (2017-01-16 20:35:50 UTC) #21
grt (UTC plus 2)
On 2017/01/16 20:35:50, Sigurður Ásgeirsson wrote: > LGTM - except I think you forgot to ...
3 years, 11 months ago (2017-01-16 20:42:13 UTC) #22
scottmg
chrome/BUILD.gn lgtm https://codereview.chromium.org/2635953002/diff/40001/chrome/install_static/BUILD.gn File chrome/install_static/BUILD.gn (right): https://codereview.chromium.org/2635953002/diff/40001/chrome/install_static/BUILD.gn#newcode58 chrome/install_static/BUILD.gn:58: # InstallDetails instance. It would help me ...
3 years, 11 months ago (2017-01-16 21:01:15 UTC) #23
grt (UTC plus 2)
Thanks. https://codereview.chromium.org/2635953002/diff/40001/chrome/install_static/BUILD.gn File chrome/install_static/BUILD.gn (right): https://codereview.chromium.org/2635953002/diff/40001/chrome/install_static/BUILD.gn#newcode58 chrome/install_static/BUILD.gn:58: # InstallDetails instance. On 2017/01/16 21:01:15, scottmg wrote: ...
3 years, 11 months ago (2017-01-16 21:06:47 UTC) #26
robertshield
chrome_elf LGTM, though note that I don't see a .def file if one is supposed ...
3 years, 11 months ago (2017-01-17 20:02:54 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2635953002/60001
3 years, 11 months ago (2017-01-18 03:28:18 UTC) #32
grt (UTC plus 2)
On 2017/01/17 20:02:54, robertshield_slow_reviews wrote: > chrome_elf LGTM, though note that I don't see a ...
3 years, 11 months ago (2017-01-18 03:28:52 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/137398) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 03:30:21 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2635953002/80001
3 years, 11 months ago (2017-01-18 07:29:07 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win10_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win10_chromium_x64_rel_ng/builds/615)
3 years, 11 months ago (2017-01-18 11:37:26 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2635953002/80001
3 years, 11 months ago (2017-01-18 13:40:23 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win10_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win10_chromium_x64_rel_ng/builds/617)
3 years, 11 months ago (2017-01-18 18:34:22 UTC) #44
grt (UTC plus 2)
(+CC wfh) removing master.tryserver.chromium.win:win10_chromium_x64_rel_ng which seems broken.
3 years, 11 months ago (2017-01-18 23:37:12 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2635953002/80001
3 years, 11 months ago (2017-01-18 23:37:52 UTC) #48
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 23:45:44 UTC) #51
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a47e8657c739f0ee2f11aecbd355...

Powered by Google App Engine
This is Rietveld 408576698