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

Side by Side Diff: chromecast/crash/cast_crash_keys.cc

Issue 1055793004: Chromecast: updates crash keys entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chromecast/crash/cast_crash_keys.h" 5 #include "chromecast/crash/cast_crash_keys.h"
6 6
7 // TODO(kjoswiak): Potentially refactor chunk size info as well as non-cast 7 // TODO(kjoswiak): Potentially refactor chunk size info as well as non-cast
8 // specific keys out and make shared with chrome/common/crash_keys.cc. 8 // specific keys out and make shared with chrome/common/crash_keys.cc.
9 namespace { 9 namespace {
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 const char kLastApp[] = "last_app"; 31 const char kLastApp[] = "last_app";
32 const char kCurrentApp[] = "current_app"; 32 const char kCurrentApp[] = "current_app";
33 const char kPreviousApp[] = "previous_app"; 33 const char kPreviousApp[] = "previous_app";
34 34
35 size_t RegisterCastCrashKeys() { 35 size_t RegisterCastCrashKeys() {
36 const base::debug::CrashKey fixed_keys[] = { 36 const base::debug::CrashKey fixed_keys[] = {
37 { kLastApp, kSmallSize }, 37 { kLastApp, kSmallSize },
38 { kCurrentApp, kSmallSize }, 38 { kCurrentApp, kSmallSize },
39 { kPreviousApp, kSmallSize }, 39 { kPreviousApp, kSmallSize },
40 // base/:
41 { "dm-usage", kSmallSize },
42 { "total-dm-usage", kSmallSize },
43 // content/: 40 // content/:
41 { "discardable-memory-allocated", kSmallSize },
42 { "discardable-memory-free", kSmallSize },
44 { "ppapi_path", kMediumSize }, 43 { "ppapi_path", kMediumSize },
45 { "subresource_url", kLargeSize }, 44 { "subresource_url", kLargeSize },
45 { "total-discardable-memory-allocated", kSmallSize },
46 }; 46 };
47 47
48 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys), 48 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys),
49 kSingleChunkLength); 49 kSingleChunkLength);
50 } 50 }
51 51
52 } // namespace chromecast 52 } // namespace chromecast
53 } // namespace crash_keys 53 } // namespace crash_keys
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698