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

Unified Diff: chrome/common/sqlite_utils.cc

Issue 19610: Safe browsing cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/common/sqlite_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/sqlite_utils.cc
===================================================================
--- chrome/common/sqlite_utils.cc (revision 8772)
+++ chrome/common/sqlite_utils.cc (working copy)
@@ -4,8 +4,17 @@
#include "chrome/common/sqlite_utils.h"
+#include "base/file_path.h"
#include "base/logging.h"
+int OpenSqliteDb(const FilePath& filepath, sqlite3** database) {
+#if defined(OS_WIN)
+ return sqlite3_open16(filepath.value().c_str(), database);
+#elif defined(OS_POSIX)
+ return sqlite3_open(filepath.value().c_str(), database);
+#endif
+}
+
bool DoesSqliteTableExist(sqlite3* db,
const char* db_name,
const char* table_name) {
@@ -71,7 +80,6 @@
return s.step() == SQLITE_ROW;
}
-
SQLTransaction::SQLTransaction(sqlite3* db) : db_(db), began_(false) {
}
« no previous file with comments | « chrome/common/sqlite_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698