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

Unified Diff: chrome/browser/sync/util/sqlite_utils.cc

Issue 7528026: sync: Put sqlite_utils.* into sqlite_utils namespace. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/util/sqlite_utils.h ('k') | chrome/browser/sync/util/user_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/sqlite_utils.cc
diff --git a/chrome/browser/sync/util/sqlite_utils.cc b/chrome/browser/sync/util/sqlite_utils.cc
index 7b6f25002fb29b1d51e00e3086925d1e94183b9c..20e98961fe7e58a894f1251fe7e7111aecf52445 100644
--- a/chrome/browser/sync/util/sqlite_utils.cc
+++ b/chrome/browser/sync/util/sqlite_utils.cc
@@ -13,6 +13,8 @@
#include "base/string16.h"
#include "base/synchronization/lock.h"
+namespace sqlite_utils {
+
// The vanilla error handler implements the common fucntionality for all the
// error handlers. Specialized error handlers are expected to only override
// the Handler() function.
@@ -85,8 +87,6 @@ SQLErrorHandlerFactory* GetErrorHandlerFactory() {
return g_default_sql_error_handler_factory.Pointer();
}
-namespace sqlite_utils {
-
int OpenSqliteDb(const FilePath& filepath, sqlite3** database) {
#if defined(OS_WIN)
// We want the default encoding to always be UTF-8, so we use the
@@ -162,8 +162,6 @@ bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name) {
return s.step() == SQLITE_ROW;
}
-} // namespace sqlite_utils
-
SQLTransaction::SQLTransaction(sqlite3* db) : db_(db), began_(false) {
}
@@ -508,3 +506,5 @@ std::wstring SQLStatement::column_wstring(int index) {
column_wstring(index, &wstr);
return wstr;
}
+
+} // namespace sqlite_utils
« no previous file with comments | « chrome/browser/sync/util/sqlite_utils.h ('k') | chrome/browser/sync/util/user_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698