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

Side by Side Diff: chrome/browser/sync/util/user_settings.cc

Issue 7550059: Move sqlite_utils.* to sync/util/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // 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/md5.h" 21 #include "base/md5.h"
22 #include "base/rand_util.h" 22 #include "base/rand_util.h"
23 #include "base/string_util.h" 23 #include "base/string_util.h"
24 #include "chrome/browser/sync/syncable/directory_manager.h" // For migration. 24 #include "chrome/browser/sync/syncable/directory_manager.h" // For migration.
25 #include "chrome/browser/sync/util/data_encryption.h" 25 #include "chrome/browser/sync/util/data_encryption.h"
26 #include "chrome/browser/sync/util/sqlite_utils.h"
26 #include "chrome/common/random.h" 27 #include "chrome/common/random.h"
27 #include "chrome/common/sqlite_utils.h"
28 28
29 using std::numeric_limits; 29 using std::numeric_limits;
30 using std::string; 30 using std::string;
31 using std::vector; 31 using std::vector;
32 32
33 using syncable::DirectoryManager; 33 using syncable::DirectoryManager;
34 34
35 namespace browser_sync { 35 namespace browser_sync {
36 36
37 void ExecOrDie(sqlite3* dbhandle, const char *query) { 37 void ExecOrDie(sqlite3* dbhandle, const char *query) {
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 query.prepare(dbhandle.get(), "SELECT email FROM cookies"); 456 query.prepare(dbhandle.get(), "SELECT email FROM cookies");
457 if (SQLITE_ROW == query.step()) { 457 if (SQLITE_ROW == query.step()) {
458 *username = query.column_string(0); 458 *username = query.column_string(0);
459 return true; 459 return true;
460 } else { 460 } else {
461 return false; 461 return false;
462 } 462 }
463 } 463 }
464 464
465 } // namespace browser_sync 465 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/sqlite_utils.cc ('k') | chrome/browser/sync/util/user_settings_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698