OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/password_manager/core/browser/webdata/logins_table.h" | 5 #include "components/password_manager/core/browser/webdata/logins_table.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" |
10 #include "components/webdata/common/web_database.h" | 11 #include "components/webdata/common/web_database.h" |
11 #include "sql/statement.h" | 12 #include "sql/statement.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 WebDatabaseTable::TypeKey GetKey() { | 16 WebDatabaseTable::TypeKey GetKey() { |
16 // We just need a unique constant. Use the address of a static that | 17 // We just need a unique constant. Use the address of a static that |
17 // COMDAT folding won't touch in an optimizing linker. | 18 // COMDAT folding won't touch in an optimizing linker. |
18 static int table_key = 0; | 19 static int table_key = 0; |
19 return reinterpret_cast<void*>(&table_key); | 20 return reinterpret_cast<void*>(&table_key); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 60 } |
60 | 61 |
61 bool LoginsTable::IsSyncable() { | 62 bool LoginsTable::IsSyncable() { |
62 return true; | 63 return true; |
63 } | 64 } |
64 | 65 |
65 bool LoginsTable::MigrateToVersion(int version, | 66 bool LoginsTable::MigrateToVersion(int version, |
66 bool* update_compatible_version) { | 67 bool* update_compatible_version) { |
67 return true; | 68 return true; |
68 } | 69 } |
OLD | NEW |