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 file. |
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> |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 ScopedStatement query(PrepareQuery(dbhandle.get(), | 343 ScopedStatement query(PrepareQuery(dbhandle.get(), |
344 "SELECT id FROM client_id")); | 344 "SELECT id FROM client_id")); |
345 int query_result = sqlite3_step(query.get()); | 345 int query_result = sqlite3_step(query.get()); |
346 string client_id; | 346 string client_id; |
347 if (query_result == SQLITE_ROW) | 347 if (query_result == SQLITE_ROW) |
348 GetColumn(query.get(), 0, &client_id); | 348 GetColumn(query.get(), 0, &client_id); |
349 return client_id; | 349 return client_id; |
350 } | 350 } |
351 | 351 |
352 } // namespace browser_sync | 352 } // namespace browser_sync |
OLD | NEW |