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

Side by Side Diff: chrome/install_static/install_details.cc

Issue 2867063002: Stability instrumentation Crashpad integration (Closed)
Patch Set: merge Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « chrome/install_static/install_details.h ('k') | chrome/install_static/install_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/install_static/install_details.h" 5 #include "chrome/install_static/install_details.h"
6 6
7 #include <assert.h>
8 #include <string.h> 7 #include <string.h>
9 8
10 #include <type_traits> 9 #include <type_traits>
11 10
12 #include "chrome/install_static/install_modes.h" 11 #include "chrome/install_static/install_modes.h"
13 #include "chrome/install_static/install_util.h"
14 #include "chrome_elf/nt_registry/nt_registry.h" 12 #include "chrome_elf/nt_registry/nt_registry.h"
15 #include "components/version_info/version_info_values.h" 13 #include "components/version_info/version_info_values.h"
16 14
17 namespace install_static { 15 namespace install_static {
18 16
19 namespace { 17 namespace {
20 18
21 // The version is set at compile-time to a W.X.Y.Z value. 19 // The version is set at compile-time to a W.X.Y.Z value.
22 constexpr char kProductVersion[] = PRODUCT_VERSION; 20 constexpr char kProductVersion[] = PRODUCT_VERSION;
23 21
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::unique_ptr<const InstallDetails> previous_value(g_module_details); 78 std::unique_ptr<const InstallDetails> previous_value(g_module_details);
81 g_module_details = install_details.release(); 79 g_module_details = install_details.release();
82 return previous_value; 80 return previous_value;
83 } 81 }
84 82
85 PrimaryInstallDetails::PrimaryInstallDetails() : InstallDetails(&payload_) { 83 PrimaryInstallDetails::PrimaryInstallDetails() : InstallDetails(&payload_) {
86 payload_.size = sizeof(payload_); 84 payload_.size = sizeof(payload_);
87 payload_.product_version = &kProductVersion[0]; 85 payload_.product_version = &kProductVersion[0];
88 } 86 }
89 87
88 PrimaryInstallDetails::~PrimaryInstallDetails() {}
89
90 } // namespace install_static 90 } // namespace install_static
OLDNEW
« no previous file with comments | « chrome/install_static/install_details.h ('k') | chrome/install_static/install_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698