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

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

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: merged 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/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "content/public/browser/browser_message_filter.h" 12 #include "content/public/browser/browser_message_filter.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "content/public/browser/render_process_host.h" 14 #include "content/public/browser/render_process_host.h"
15 15
16 namespace content { 16 namespace content {
17 namespace bad_message { 17 namespace bad_message {
18 18
19 namespace { 19 namespace {
20 20
(...skipping 30 matching lines...) Expand all
51 ReceivedBadMessageOnUIThread(render_process_id, reason); 51 ReceivedBadMessageOnUIThread(render_process_id, reason);
52 } 52 }
53 53
54 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason) { 54 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason) {
55 LogBadMessage(reason); 55 LogBadMessage(reason);
56 filter->ShutdownForBadMessage(); 56 filter->ShutdownForBadMessage();
57 } 57 }
58 58
59 } // namespace bad_message 59 } // namespace bad_message
60 } // namespace content 60 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698