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

Unified Diff: chrome/browser/sync/syncable/directory_backing_store.cc

Issue 340055: String cleanup in sync code (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/syncable/directory_backing_store.cc
===================================================================
--- chrome/browser/sync/syncable/directory_backing_store.cc (revision 30948)
+++ chrome/browser/sync/syncable/directory_backing_store.cc (working copy)
@@ -71,11 +71,7 @@
#endif
static void RegisterPathNameCollate(sqlite3* dbhandle) {
-#if defined(OS_WIN)
- const int collate = SQLITE_UTF16;
-#else
const int collate = SQLITE_UTF8;
-#endif
CHECK(SQLITE_OK == sqlite3_create_collation(dbhandle, "PATHNAME", collate,
NULL, &ComparePathNames16));
}
@@ -246,7 +242,7 @@
// DirectoryBackingStore implementation.
DirectoryBackingStore::DirectoryBackingStore(const PathString& dir_name,
- const PathString& backing_filepath)
+ const FilePath& backing_filepath)
: load_dbhandle_(NULL),
save_dbhandle_(NULL),
dir_name_(dir_name),
@@ -266,7 +262,7 @@
bool DirectoryBackingStore::OpenAndConfigureHandleHelper(
sqlite3** handle) const {
- if (SQLITE_OK == SqliteOpen(backing_filepath_.c_str(), handle)) {
+ if (SQLITE_OK == SqliteOpen(backing_filepath_, handle)) {
sqlite3_busy_timeout(*handle, kDirectoryBackingStoreBusyTimeoutMs);
RegisterPathNameCollate(*handle);
RegisterPathNameMatch(*handle);
« no previous file with comments | « chrome/browser/sync/syncable/directory_backing_store.h ('k') | chrome/browser/sync/syncable/directory_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698