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

Side by Side Diff: components/history/core/browser/download_database.cc

Issue 2293583002: Change includes of histogram.h to histogram_macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 "components/history/core/browser/download_database.h" 5 #include "components/history/core/browser/download_database.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/debug/alias.h" 14 #include "base/debug/alias.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram_macros.h"
17 #include "base/rand_util.h" 17 #include "base/rand_util.h"
18 #include "base/stl_util.h" 18 #include "base/stl_util.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "components/history/core/browser/download_constants.h" 23 #include "components/history/core/browser/download_constants.h"
24 #include "components/history/core/browser/download_row.h" 24 #include "components/history/core/browser/download_row.h"
25 #include "components/history/core/browser/history_types.h" 25 #include "components/history/core/browser/history_types.h"
26 #include "sql/statement.h" 26 #include "sql/statement.h"
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 size_t DownloadDatabase::CountDownloads() { 681 size_t DownloadDatabase::CountDownloads() {
682 EnsureInProgressEntriesCleanedUp(); 682 EnsureInProgressEntriesCleanedUp();
683 683
684 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, 684 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE,
685 "SELECT count(*) from downloads")); 685 "SELECT count(*) from downloads"));
686 statement.Step(); 686 statement.Step();
687 return statement.ColumnInt(0); 687 return statement.ColumnInt(0);
688 } 688 }
689 689
690 } // namespace history 690 } // namespace history
OLDNEW
« no previous file with comments | « components/domain_reliability/context.cc ('k') | components/history/core/browser/history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698