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

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

Issue 193103: Build sync engine as part of the browser build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/notifier/gaia_auth/win32window.cc ('k') | chrome/browser/sync/syncable/syncable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/directory_backing_store.cc
===================================================================
--- chrome/browser/sync/syncable/directory_backing_store.cc (revision 26149)
+++ chrome/browser/sync/syncable/directory_backing_store.cc (working copy)
@@ -4,6 +4,8 @@
#include "chrome/browser/sync/syncable/directory_backing_store.h"
+#include "build/build_config.h"
+
#ifdef OS_MACOSX
#include <CoreFoundation/CoreFoundation.h>
#elif defined(OS_LINUX)
@@ -67,7 +69,7 @@
}
static void RegisterPathNameCollate(sqlite3* dbhandle) {
-#ifdef OS_WINDOWS
+#ifdef OS_WIN
const int collate = SQLITE_UTF16;
#else
const int collate = SQLITE_UTF8;
@@ -85,12 +87,12 @@
// comparison on mac, so that would have to be fixed if
// we really wanted to use PathNameMatch on mac/linux w/ the
// same pattern strings as we do on windows.
-#ifdef OS_WINDOWS
+#ifdef OS_WIN
CHECK(SQLITE_OK == sqlite3_create_function(dbhandle, "like",
2, SQLITE_ANY, NULL, &PathNameMatch16, NULL, NULL));
CHECK(SQLITE_OK == sqlite3_create_function(dbhandle, "like",
3, SQLITE_ANY, NULL, &PathNameMatch16WithEscape, NULL, NULL));
-#endif // OS_WINDOWS
+#endif // OS_WIN
}
static inline bool IsSqliteErrorOurFault(int result) {
« no previous file with comments | « chrome/browser/sync/notifier/gaia_auth/win32window.cc ('k') | chrome/browser/sync/syncable/syncable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698