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

Side by Side Diff: blimp/engine/app/blimp_engine_crash_keys.cc

Issue 1783053002: Initial addition of blimp crash client code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address kmarshall's comments Created 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "blimp/engine/app/blimp_engine_crash_keys.h"
6
7 #include <vector>
8
9 #include "base/debug/crash_logging.h"
10 #include "components/crash/core/common/crash_keys.h"
11
12 namespace blimp {
13 namespace engine {
14
15 size_t RegisterEngineCrashKeys() {
16 const std::vector<base::debug::CrashKey> engine_keys = {
17 {::crash_keys::kClientId, ::crash_keys::kSmallSize},
18 {::crash_keys::kChannel, ::crash_keys::kSmallSize},
19 {::crash_keys::kNumVariations, ::crash_keys::kSmallSize},
20 {::crash_keys::kVariations, ::crash_keys::kLargeSize},
21 {"discardable-memory-allocated", ::crash_keys::kSmallSize},
22 {"discardable-memory-free", ::crash_keys::kSmallSize},
23 {"ppapi_path", ::crash_keys::kMediumSize},
24 {"subresource_url", ::crash_keys::kLargeSize},
25 {"total-discardable-memory-allocated", ::crash_keys::kSmallSize}};
26
27 return base::debug::InitCrashKeys(&engine_keys.at(0), engine_keys.size(),
28 ::crash_keys::kChunkMaxLength);
29 }
30
31 } // namespace engine
32 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_engine_crash_keys.h ('k') | blimp/engine/app/blimp_engine_crash_reporter_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698