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

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

Issue 2717223003: Add WebView-specific whitelist for crash keys. (Closed)
Patch Set: Use non-allocating whitelist implementation. Add instrumentation tests. 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 #include "components/crash/content/app/crash_reporter_client.h" 5 #include "components/crash/content/app/crash_reporter_client.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 // On Windows don't use FilePath and logging.h. 9 // On Windows don't use FilePath and logging.h.
10 // http://crbug.com/604923 10 // http://crbug.com/604923
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 #else 115 #else
116 bool CrashReporterClient::GetCrashMetricsLocation(base::FilePath* crash_dir) { 116 bool CrashReporterClient::GetCrashMetricsLocation(base::FilePath* crash_dir) {
117 #endif 117 #endif
118 return false; 118 return false;
119 } 119 }
120 120
121 size_t CrashReporterClient::RegisterCrashKeys() { 121 size_t CrashReporterClient::RegisterCrashKeys() {
122 return 0; 122 return 0;
123 } 123 }
124 124
125 bool CrashReporterClient::UseCrashKeysWhiteList() {
126 return false;
127 }
128
129 std::vector<const char*> CrashReporterClient::GetWhiteListedCrashKeys() {
130 return {};
131 }
132
125 bool CrashReporterClient::IsRunningUnattended() { 133 bool CrashReporterClient::IsRunningUnattended() {
126 return true; 134 return true;
127 } 135 }
128 136
129 bool CrashReporterClient::GetCollectStatsConsent() { 137 bool CrashReporterClient::GetCollectStatsConsent() {
130 return false; 138 return false;
131 } 139 }
132 140
133 bool CrashReporterClient::GetCollectStatsInSample() { 141 bool CrashReporterClient::GetCollectStatsInSample() {
134 // By default, clients don't do sampling, so everything will be "in-sample". 142 // By default, clients don't do sampling, so everything will be "in-sample".
(...skipping 29 matching lines...) Expand all
164 #endif 172 #endif
165 } 173 }
166 #endif 174 #endif
167 175
168 bool CrashReporterClient::EnableBreakpadForProcess( 176 bool CrashReporterClient::EnableBreakpadForProcess(
169 const std::string& process_type) { 177 const std::string& process_type) {
170 return false; 178 return false;
171 } 179 }
172 180
173 } // namespace crash_reporter 181 } // namespace crash_reporter
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698