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

Side by Side Diff: media/base/crash_keys.cc

Issue 1849413003: Define crash keys in the directory hierarchy where they are used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with head Created 4 years, 5 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 | « media/base/crash_keys.h ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "media/base/crash_keys.h"
6
7 #include <vector>
8
9 #include "base/debug/crash_logging.h"
10 #include "base/logging.h"
11 #include "build/build_config.h"
12 #include "components/crash/core/common/crash_keys.h"
13
14 namespace crash_keys {
15
16 #if defined(OS_WIN)
17 const char kHungAudioThreadDetails[] = "hung-audio-thread-details";
18 #endif
19
20 const char kZeroEncodeDetails[] = "zero-encode-details";
21
22 void AppendMediaCrashKeys(std::vector<base::debug::CrashKey>* keys) {
23 DCHECK(keys);
24
25 const std::vector<base::debug::CrashKey> media_keys = {
26 #if defined(OS_WIN)
27 {kHungAudioThreadDetails, kSmallSize},
28 #endif
29 {kZeroEncodeDetails, kSmallSize},
30 };
31
32 keys->insert(keys->end(), media_keys.begin(), media_keys.end());
33 }
34
35 } // namespace crash_keys
OLDNEW
« no previous file with comments | « media/base/crash_keys.h ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698