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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_store_file.cc

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month 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_store_file.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.cc b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
index 122b517880f89589fccce3c80af88ea64a275bc3..b5ee867c505e4c288fb734afa531b170e37b432e 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store_file.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
@@ -11,6 +11,8 @@
#include "base/metrics/sparse_histogram.h"
#include "components/safe_browsing_db/prefix_set.h"
+namespace safe_browsing {
+
namespace {
// NOTE(shess): kFileMagic should not be a byte-wise palindrome, so
@@ -820,7 +822,7 @@ bool SafeBrowsingStoreFile::FinishChunk() {
}
bool SafeBrowsingStoreFile::DoUpdate(
- safe_browsing::PrefixSetBuilder* builder,
+ PrefixSetBuilder* builder,
std::vector<SBAddFullHash>* add_full_hashes_result) {
DCHECK(CalledOnValidThread());
DCHECK(file_.get() || empty_);
@@ -1068,7 +1070,7 @@ bool SafeBrowsingStoreFile::DoUpdate(
}
bool SafeBrowsingStoreFile::FinishUpdate(
- safe_browsing::PrefixSetBuilder* builder,
+ PrefixSetBuilder* builder,
std::vector<SBAddFullHash>* add_full_hashes_result) {
DCHECK(CalledOnValidThread());
DCHECK(builder);
@@ -1163,3 +1165,5 @@ bool SafeBrowsingStoreFile::DeleteStore(const base::FilePath& basename) {
return true;
}
+
+} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698