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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_database_impl.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
Index: chrome/browser/safe_browsing/safe_browsing_database_impl.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_database_impl.cc (revision 8772)
+++ chrome/browser/safe_browsing/safe_browsing_database_impl.cc (working copy)
@@ -76,7 +76,7 @@
Close();
}
-bool SafeBrowsingDatabaseImpl::Init(const std::wstring& filename,
+bool SafeBrowsingDatabaseImpl::Init(const FilePath& filename,
Callback0::Type* chunk_inserted_callback) {
DCHECK(!init_ && filename_.empty());
@@ -114,7 +114,7 @@
}
bool SafeBrowsingDatabaseImpl::Open() {
- if (sqlite3_open(WideToUTF8(filename_).c_str(), &db_) != SQLITE_OK)
+ if (OpenSqliteDb(filename_, &db_) != SQLITE_OK)
return false;
// Run the database in exclusive mode. Nobody else should be accessing the

Powered by Google App Engine
This is Rietveld 408576698