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

Side by Side Diff: content/browser/bad_message.cc

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: Rebase update on Oct 18 Created 4 years, 2 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 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 "content/browser/bad_message.h" 5 #include "content/browser/bad_message.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/debug/dump_without_crashing.h" 9 #include "base/debug/dump_without_crashing.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/metrics/sparse_histogram.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "content/public/browser/browser_message_filter.h" 13 #include "content/public/browser/browser_message_filter.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "content/public/browser/render_process_host.h" 15 #include "content/public/browser/render_process_host.h"
16 16
17 namespace content { 17 namespace content {
18 namespace bad_message { 18 namespace bad_message {
19 19
20 namespace { 20 namespace {
21 21
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ReceivedBadMessageOnUIThread(render_process_id, reason); 63 ReceivedBadMessageOnUIThread(render_process_id, reason);
64 } 64 }
65 65
66 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason) { 66 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason) {
67 LogBadMessage(reason); 67 LogBadMessage(reason);
68 filter->ShutdownForBadMessage(); 68 filter->ShutdownForBadMessage();
69 } 69 }
70 70
71 } // namespace bad_message 71 } // namespace bad_message
72 } // namespace content 72 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698