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(); |
+} |