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

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

Issue 2303653005: Migrate content/ files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/histogram_message_filter.h" 5 #include "content/browser/histogram_message_filter.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/metrics/statistics_recorder.h" 9 #include "base/metrics/statistics_recorder.h"
10 #include "content/browser/histogram_controller.h" 10 #include "content/browser/histogram_controller.h"
11 #include "content/common/child_process_messages.h" 11 #include "content/common/child_process_messages.h"
12 #include "content/public/common/content_switches.h" 12 #include "content/public/common/content_switches.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 HistogramMessageFilter::HistogramMessageFilter() 16 HistogramMessageFilter::HistogramMessageFilter()
17 : BrowserMessageFilter(ChildProcessMsgStart) {} 17 : BrowserMessageFilter(ChildProcessMsgStart) {}
18 18
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 base::HistogramBase* histogram = 54 base::HistogramBase* histogram =
55 base::StatisticsRecorder::FindHistogram(name); 55 base::StatisticsRecorder::FindHistogram(name);
56 if (!histogram) { 56 if (!histogram) {
57 *histogram_json = "{}"; 57 *histogram_json = "{}";
58 } else { 58 } else {
59 histogram->WriteJSON(histogram_json); 59 histogram->WriteJSON(histogram_json);
60 } 60 }
61 } 61 }
62 62
63 } // namespace content 63 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/histogram_internals_request_job.cc ('k') | content/browser/indexed_db/leveldb/leveldb_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698