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

Unified Diff: chrome_elf/chrome_elf_main.cc

Issue 2422643002: Windows install_static refactor. (Closed)
Patch Set: maybe fix nacl64 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome_elf/chrome_elf_main.cc
diff --git a/chrome_elf/chrome_elf_main.cc b/chrome_elf/chrome_elf_main.cc
index fa60e2de4b472615b7aa81def3da820d234c0d95..a43f9fe3aff165e83cba19cbbb4e531be34c77d5 100644
--- a/chrome_elf/chrome_elf_main.cc
+++ b/chrome_elf/chrome_elf_main.cc
@@ -7,7 +7,9 @@
#include <assert.h>
#include <windows.h>
+#include "chrome/install_static/install_details.h"
#include "chrome/install_static/install_util.h"
+#include "chrome/install_static/product_install_details.h"
#include "chrome_elf/blacklist/blacklist.h"
#include "chrome_elf/crash/crash_helper.h"
@@ -15,8 +17,14 @@ void SignalChromeElf() {
blacklist::ResetBeacon();
}
+extern "C" intptr_t GetInstallDetailsPayload() {
+ return install_static::InstallDetails::Get().GetPayload();
+}
+
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
if (reason == DLL_PROCESS_ATTACH) {
+ install_static::InitializeModuleProductDetails();
+
if (!elf_crash::InitializeCrashReporting()) {
#ifdef _DEBUG
assert(false);

Powered by Google App Engine
This is Rietveld 408576698