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

Side by Side Diff: client/crashpad_info.cc

Issue 997713002: Allow exception forwarding to the system’s native crash reporter to be disabled (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 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 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // static 79 // static
80 CrashpadInfo* CrashpadInfo::GetCrashpadInfo() { 80 CrashpadInfo* CrashpadInfo::GetCrashpadInfo() {
81 return &g_crashpad_info; 81 return &g_crashpad_info;
82 } 82 }
83 83
84 CrashpadInfo::CrashpadInfo() 84 CrashpadInfo::CrashpadInfo()
85 : signature_(kSignature), 85 : signature_(kSignature),
86 size_(sizeof(*this)), 86 size_(sizeof(*this)),
87 version_(kCrashpadInfoVersion), 87 version_(kCrashpadInfoVersion),
88 options_(0),
88 padding_0_(0), 89 padding_0_(0),
90 padding_1_(0),
89 simple_annotations_(nullptr) { 91 simple_annotations_(nullptr) {
90 } 92 }
91 93
94 void CrashpadInfo::SetCrashpadHandlerState(TriState state) {
95 options_ = (options_ & ~0x3) | state;
Robert Sesek 2015/03/10 23:03:04 This is a bit magic-y, especially across crashpad
96 }
97
98 void CrashpadInfo::SetNativeCrashReporterForwarding(TriState state) {
99 options_ = (options_ & ~(0x3 << 2)) | (state << 2);
100 }
101
92 const uint32_t CrashpadInfo::kSignature; 102 const uint32_t CrashpadInfo::kSignature;
93 103
94 } // namespace crashpad 104 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698