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

Unified Diff: components/safe_browsing_db/prefix_set.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: components/safe_browsing_db/prefix_set.cc
diff --git a/components/safe_browsing_db/prefix_set.cc b/components/safe_browsing_db/prefix_set.cc
index e6b4ecc029c7e3d9f7846691d8894d4e08fa2a30..f8a4f1aa3e4c105e30d672f851db92932a3ebed5 100644
--- a/components/safe_browsing_db/prefix_set.cc
+++ b/components/safe_browsing_db/prefix_set.cc
@@ -13,6 +13,8 @@
#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"
+namespace safe_browsing {
+
namespace {
// |kMagic| should be reasonably unique, and not match itself across
@@ -76,8 +78,6 @@ size_t EstimateFinalCount(SBPrefix current_prefix, size_t current_count) {
} // namespace
-namespace safe_browsing {
-
// For |std::upper_bound()| to find a prefix w/in a vector of pairs.
// static
bool PrefixSet::PrefixLess(const IndexPair& a, const IndexPair& b) {
« no previous file with comments | « chrome/test/ppapi/ppapi_filechooser_browsertest.cc ('k') | components/safe_browsing_db/prefix_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698