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

Side by Side Diff: components/crash/content/app/breakpad_linux.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // For linux_syscall_support.h. This makes it safe to call embedded system 5 // For linux_syscall_support.h. This makes it safe to call embedded system
6 // calls when in seccomp mode. 6 // calls when in seccomp mode.
7 7
8 #include "components/crash/content/app/breakpad_linux.h" 8 #include "components/crash/content/app/breakpad_linux.h"
9 9
10 #include <fcntl.h> 10 #include <fcntl.h>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const SanitizationInfo& sanitization_info); 136 const SanitizationInfo& sanitization_info);
137 137
138 private: 138 private:
139 base::ThreadChecker thread_checker_; 139 base::ThreadChecker thread_checker_;
140 const char* microdump_gpu_fingerprint_; 140 const char* microdump_gpu_fingerprint_;
141 }; 141 };
142 142
143 void SetMinidumpSanitizationFields(MinidumpDescriptor* minidump_descriptor, 143 void SetMinidumpSanitizationFields(MinidumpDescriptor* minidump_descriptor,
144 const SanitizationInfo& sanitization_info); 144 const SanitizationInfo& sanitization_info);
145 145
146 base::LazyInstance<MicrodumpInfo> g_microdump_info = 146 base::LazyInstance<MicrodumpInfo>::DestructorAtExit g_microdump_info =
147 LAZY_INSTANCE_INITIALIZER; 147 LAZY_INSTANCE_INITIALIZER;
148 148
149 #endif 149 #endif
150 150
151 CrashKeyStorage* g_crash_keys = nullptr; 151 CrashKeyStorage* g_crash_keys = nullptr;
152 152
153 // Writes the value |v| as 16 hex characters to the memory pointed at by 153 // Writes the value |v| as 16 hex characters to the memory pointed at by
154 // |output|. 154 // |output|.
155 void write_uint64_hex(char* output, uint64_t v) { 155 void write_uint64_hex(char* output, uint64_t v) {
156 static const char hextable[] = "0123456789abcdef"; 156 static const char hextable[] = "0123456789abcdef";
(...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after
2081 void SuppressDumpGeneration() { 2081 void SuppressDumpGeneration() {
2082 g_dumps_suppressed = G_DUMPS_SUPPRESSED_MAGIC; 2082 g_dumps_suppressed = G_DUMPS_SUPPRESSED_MAGIC;
2083 } 2083 }
2084 #endif // OS_ANDROID 2084 #endif // OS_ANDROID
2085 2085
2086 bool IsCrashReporterEnabled() { 2086 bool IsCrashReporterEnabled() {
2087 return g_is_crash_reporter_enabled; 2087 return g_is_crash_reporter_enabled;
2088 } 2088 }
2089 2089
2090 } // namespace breakpad 2090 } // namespace breakpad
OLDNEW
« no previous file with comments | « components/cookie_config/cookie_store_util.cc ('k') | components/crash/content/browser/crash_dump_observer_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698