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

Side by Side Diff: chrome/app/chrome_crash_reporter_client_win.cc

Issue 2872503003: Add crash keys about field trial shared memory errors. (Closed)
Patch Set: Rebased 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 | « base/metrics/field_trial.cc ('k') | chrome/common/crash_keys.cc » ('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 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 // TODO(ananta/scottmg) 5 // TODO(ananta/scottmg)
6 // Add test coverage for Crashpad. 6 // Add test coverage for Crashpad.
7 #include "chrome/app/chrome_crash_reporter_client_win.h" 7 #include "chrome/app/chrome_crash_reporter_client_win.h"
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Temporary for https://crbug.com/668633. 174 // Temporary for https://crbug.com/668633.
175 {"swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize}, 175 {"swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize},
176 {"swdh_set_hosted_version_host_pid", crash_keys::kSmallSize}, 176 {"swdh_set_hosted_version_host_pid", crash_keys::kSmallSize},
177 {"swdh_set_hosted_version_is_new_process", crash_keys::kSmallSize}, 177 {"swdh_set_hosted_version_is_new_process", crash_keys::kSmallSize},
178 {"swdh_set_hosted_version_restart_count", crash_keys::kSmallSize}, 178 {"swdh_set_hosted_version_restart_count", crash_keys::kSmallSize},
179 179
180 // Temporary for https://crbug.com/697745. 180 // Temporary for https://crbug.com/697745.
181 {"engine_params", crash_keys::kMediumSize}, 181 {"engine_params", crash_keys::kMediumSize},
182 {"engine1_params", crash_keys::kMediumSize}, 182 {"engine1_params", crash_keys::kMediumSize},
183 {"engine2_params", crash_keys::kMediumSize}, 183 {"engine2_params", crash_keys::kMediumSize},
184
185 // Temporary for http://crbug.com/703649.
186 {"field_trial_shmem_create_error", crash_keys::kSmallSize},
187 {"field_trial_shmem_map_error", crash_keys::kSmallSize},
184 }; 188 };
185 189
186 // This dynamic set of keys is used for sets of key value pairs when gathering 190 // This dynamic set of keys is used for sets of key value pairs when gathering
187 // a collection of data, like command line switches or extension IDs. 191 // a collection of data, like command line switches or extension IDs.
188 std::vector<base::debug::CrashKey> keys(std::begin(kFixedKeys), 192 std::vector<base::debug::CrashKey> keys(std::begin(kFixedKeys),
189 std::end(kFixedKeys)); 193 std::end(kFixedKeys));
190 194
191 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); 195 crash_keys::GetCrashKeysForCommandLineSwitches(&keys);
192 196
193 // Register the extension IDs. 197 // Register the extension IDs.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 408
405 return base::RandDouble() < probability; 409 return base::RandDouble() < probability;
406 } 410 }
407 411
408 bool ChromeCrashReporterClient::EnableBreakpadForProcess( 412 bool ChromeCrashReporterClient::EnableBreakpadForProcess(
409 const std::string& process_type) { 413 const std::string& process_type) {
410 // This is not used by Crashpad (at least on Windows). 414 // This is not used by Crashpad (at least on Windows).
411 NOTREACHED(); 415 NOTREACHED();
412 return true; 416 return true;
413 } 417 }
OLDNEW
« no previous file with comments | « base/metrics/field_trial.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698