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

Unified Diff: components/safe_browsing_db/util.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
« no previous file with comments | « components/safe_browsing_db/util.h ('k') | components/safe_browsing_db/util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/util.cc
diff --git a/components/safe_browsing_db/util.cc b/components/safe_browsing_db/util.cc
index 8d95b9c849f023118976d63f79e53d5cf542edcf..27f71bf5864a42c57fd4d0280b502c80abe4a201 100644
--- a/components/safe_browsing_db/util.cc
+++ b/components/safe_browsing_db/util.cc
@@ -10,12 +10,14 @@
#include "url/gurl.h"
#include "url/url_util.h"
+namespace safe_browsing {
+
// Utility functions -----------------------------------------------------------
namespace {
bool IsKnownList(const std::string& name) {
- for (size_t i = 0; i < arraysize(safe_browsing::kAllLists); ++i) {
- if (!strcmp(safe_browsing::kAllLists[i], name.c_str())) {
+ for (size_t i = 0; i < arraysize(kAllLists); ++i) {
+ if (!strcmp(kAllLists[i], name.c_str())) {
return true;
}
}
@@ -23,7 +25,6 @@ bool IsKnownList(const std::string& name) {
}
} // namespace
-
// SBCachedFullHashResult ------------------------------------------------------
SBCachedFullHashResult::SBCachedFullHashResult() {}
@@ -35,8 +36,6 @@ SBCachedFullHashResult::SBCachedFullHashResult(
SBCachedFullHashResult::~SBCachedFullHashResult() {}
-namespace safe_browsing {
-
// Listnames that browser can process.
const char kMalwareList[] = "goog-malware-shavar";
const char kPhishingList[] = "goog-phish-shavar";
« no previous file with comments | « components/safe_browsing_db/util.h ('k') | components/safe_browsing_db/util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698