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

Side by Side Diff: components/history/core/browser/history_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/history_database.h" 5 #include "components/history/core/browser/history_database.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/containers/hash_tables.h" 16 #include "base/containers/hash_tables.h"
17 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram_macros.h"
19 #include "base/numerics/safe_conversions.h" 19 #include "base/numerics/safe_conversions.h"
20 #include "base/rand_util.h" 20 #include "base/rand_util.h"
21 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "components/history/core/browser/url_utils.h" 24 #include "components/history/core/browser/url_utils.h"
25 #include "sql/statement.h" 25 #include "sql/statement.h"
26 #include "sql/transaction.h" 26 #include "sql/transaction.h"
27 27
28 #if defined(OS_MACOSX) && !defined(OS_IOS) 28 #if defined(OS_MACOSX) && !defined(OS_IOS)
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 "SET visit_time = visit_time + 11644473600000000 " 545 "SET visit_time = visit_time + 11644473600000000 "
546 "WHERE id IN (SELECT id FROM visits WHERE visit_time > 0);")); 546 "WHERE id IN (SELECT id FROM visits WHERE visit_time > 0);"));
547 ignore_result(db_.Execute( 547 ignore_result(db_.Execute(
548 "UPDATE segment_usage " 548 "UPDATE segment_usage "
549 "SET time_slot = time_slot + 11644473600000000 " 549 "SET time_slot = time_slot + 11644473600000000 "
550 "WHERE id IN (SELECT id FROM segment_usage WHERE time_slot > 0);")); 550 "WHERE id IN (SELECT id FROM segment_usage WHERE time_slot > 0);"));
551 } 551 }
552 #endif 552 #endif
553 553
554 } // namespace history 554 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/download_database.cc ('k') | components/history/core/browser/in_memory_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698