| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 entry. | 3 // found in the LICENSE entry. |
| 4 // | 4 // |
| 5 // This class isn't pretty. It's just a step better than globals, which is what | 5 // This class isn't pretty. It's just a step better than globals, which is what |
| 6 // these were previously. | 6 // these were previously. |
| 7 | 7 |
| 8 #include "chrome/browser/sync/util/user_settings.h" | 8 #include "chrome/browser/sync/util/user_settings.h" |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| 12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
| 13 #include <windows.h> | 13 #include <windows.h> |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 #include <limits> | 16 #include <limits> |
| 17 #include <string> | 17 #include <string> |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
| 21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 22 #include "chrome/browser/sync/syncable/directory_manager.h" // For migration. | 22 #include "chrome/browser/sync/syncable/directory_manager.h" // For migration. |
| 23 #include "chrome/browser/sync/util/crypto_helpers.h" | 23 #include "chrome/browser/sync/util/crypto_helpers.h" |
| 24 #include "chrome/browser/sync/util/data_encryption.h" | 24 #include "chrome/browser/sync/util/data_encryption.h" |
| 25 #include "chrome/browser/sync/util/path_helpers.h" | |
| 26 #include "chrome/browser/sync/util/query_helpers.h" | 25 #include "chrome/browser/sync/util/query_helpers.h" |
| 27 | 26 |
| 28 using std::numeric_limits; | 27 using std::numeric_limits; |
| 29 using std::string; | 28 using std::string; |
| 30 using std::vector; | 29 using std::vector; |
| 31 | 30 |
| 32 using syncable::DirectoryManager; | 31 using syncable::DirectoryManager; |
| 33 | 32 |
| 34 namespace browser_sync { | 33 namespace browser_sync { |
| 35 | 34 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 ScopedStatement query(PrepareQuery(dbhandle.get(), | 343 ScopedStatement query(PrepareQuery(dbhandle.get(), |
| 345 "SELECT id FROM client_id")); | 344 "SELECT id FROM client_id")); |
| 346 int query_result = sqlite3_step(query.get()); | 345 int query_result = sqlite3_step(query.get()); |
| 347 string client_id; | 346 string client_id; |
| 348 if (query_result == SQLITE_ROW) | 347 if (query_result == SQLITE_ROW) |
| 349 GetColumn(query.get(), 0, &client_id); | 348 GetColumn(query.get(), 0, &client_id); |
| 350 return client_id; | 349 return client_id; |
| 351 } | 350 } |
| 352 | 351 |
| 353 } // namespace browser_sync | 352 } // namespace browser_sync |
| OLD | NEW |