OLD | NEW |
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 Loading... |
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 |
OLD | NEW |