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

Unified Diff: chrome/install_static/get_install_details_payload.cc

Issue 2635953002: Use loader-based binding of GetInstallDetailsPayload for install_static. (Closed)
Patch Set: sync to position 444298 Created 3 years, 11 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
« no previous file with comments | « chrome/install_static/BUILD.gn ('k') | chrome/install_static/initialize_from_primary_module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/install_static/get_install_details_payload.cc
diff --git a/chrome/install_static/get_install_details_payload.cc b/chrome/install_static/get_install_details_payload.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9a4ed35d151bdaf8ffce2f35dab230e76a645cb0
--- /dev/null
+++ b/chrome/install_static/get_install_details_payload.cc
@@ -0,0 +1,14 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/install_static/install_details.h"
+
+// Returns the payload of the module's details. This should be linked into the
+// primary module (i.e., chrome_elf) via the "primary_module" source set and
+// exported for use by other modules in the process; see
+// install_static::InitializeFromPrimaryModule.
+extern "C" const install_static::InstallDetails::Payload*
+GetInstallDetailsPayload() {
+ return install_static::InstallDetails::Get().GetPayload();
+}
« no previous file with comments | « chrome/install_static/BUILD.gn ('k') | chrome/install_static/initialize_from_primary_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698