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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_database.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.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_database.cc (revision 8772)
+++ chrome/browser/safe_browsing/safe_browsing_database.cc (working copy)
@@ -16,7 +16,8 @@
using base::Time;
// Filename suffix for the bloom filter.
-static const wchar_t kBloomFilterFile[] = L" Filter";
+static const FilePath::CharType kBloomFilterFile[] =
+ FILE_PATH_LITERAL(" Filter");
// Factory method.
SafeBrowsingDatabase* SafeBrowsingDatabase::Create() {
@@ -60,9 +61,10 @@
return false;
}
-std::wstring SafeBrowsingDatabase::BloomFilterFilename(
- const std::wstring& db_filename) {
- return db_filename + kBloomFilterFile;
+// static
+FilePath SafeBrowsingDatabase::BloomFilterFilename(
+ const FilePath& db_filename) {
+ return FilePath(db_filename.value() + kBloomFilterFile);
}
void SafeBrowsingDatabase::LoadBloomFilter() {
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database.h ('k') | chrome/browser/safe_browsing/safe_browsing_database_bloom.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698