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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_database.cc

Issue 2299993004: Migrate chrome/browser 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 "chrome/browser/safe_browsing/safe_browsing_database.h" 5 #include "chrome/browser/safe_browsing/safe_browsing_database.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <iterator> 11 #include <iterator>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram_macros.h"
20 #include "base/process/process_handle.h" 20 #include "base/process/process_handle.h"
21 #include "base/process/process_metrics.h" 21 #include "base/process/process_metrics.h"
22 #include "base/sha1.h" 22 #include "base/sha1.h"
23 #include "base/strings/string_number_conversions.h" 23 #include "base/strings/string_number_conversions.h"
24 #include "base/strings/string_util.h" 24 #include "base/strings/string_util.h"
25 #include "base/strings/stringprintf.h" 25 #include "base/strings/stringprintf.h"
26 #include "base/time/time.h" 26 #include "base/time/time.h"
27 #include "build/build_config.h" 27 #include "build/build_config.h"
28 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" 28 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h"
29 #include "components/safe_browsing_db/prefix_set.h" 29 #include "components/safe_browsing_db/prefix_set.h"
(...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1877 1877
1878 // Histogram properties as in UMA_HISTOGRAM_COUNTS macro. 1878 // Histogram properties as in UMA_HISTOGRAM_COUNTS macro.
1879 base::HistogramBase* histogram_pointer = base::Histogram::FactoryGet( 1879 base::HistogramBase* histogram_pointer = base::Histogram::FactoryGet(
1880 histogram_name, 1, 1000000, 50, 1880 histogram_name, 1, 1000000, 50,
1881 base::HistogramBase::kUmaTargetedHistogramFlag); 1881 base::HistogramBase::kUmaTargetedHistogramFlag);
1882 1882
1883 histogram_pointer->Add(file_size_kilobytes); 1883 histogram_pointer->Add(file_size_kilobytes);
1884 } 1884 }
1885 1885
1886 } // namespace safe_browsing 1886 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.cc ('k') | chrome/browser/safe_browsing/safe_browsing_store_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698