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

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

Issue 1420123003: Move more declarations from c/b/sb/sb_util.h to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@01_components
Patch Set: Minor: Replace safe_browsing_util:: with safe_browsing:: and use safe_browsing:: namespace prefix 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/protocol_manager.cc
diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc
index 745a9d7fb19accfe351db101641b30a5d4ba21ae..658453b666c42ead3a3373358dd75f8c08ce8a5b 100644
--- a/chrome/browser/safe_browsing/protocol_manager.cc
+++ b/chrome/browser/safe_browsing/protocol_manager.cc
@@ -18,6 +18,7 @@
#include "base/timer/timer.h"
#include "chrome/browser/safe_browsing/protocol_parser.h"
#include "chrome/common/env_vars.h"
+#include "components/safe_browsing_db/util.h"
#include "components/variations/variations_associated_data.h"
#include "google_apis/google_api_keys.h"
#include "net/base/escape.h"
@@ -631,10 +632,10 @@ void SafeBrowsingProtocolManager::OnGetChunksComplete(
bool found_phishing = false;
for (size_t i = 0; i < lists.size(); ++i) {
update_list_data_.append(safe_browsing::FormatList(lists[i]));
- if (lists[i].name == safe_browsing_util::kPhishingList)
+ if (lists[i].name == safe_browsing::kPhishingList)
found_phishing = true;
- if (lists[i].name == safe_browsing_util::kMalwareList)
+ if (lists[i].name == safe_browsing::kMalwareList)
found_malware = true;
}
@@ -645,11 +646,11 @@ void SafeBrowsingProtocolManager::OnGetChunksComplete(
// removed.
if (!found_phishing) {
update_list_data_.append(safe_browsing::FormatList(
- SBListChunkRanges(safe_browsing_util::kPhishingList)));
+ SBListChunkRanges(safe_browsing::kPhishingList)));
}
if (!found_malware) {
update_list_data_.append(safe_browsing::FormatList(
- SBListChunkRanges(safe_browsing_util::kMalwareList)));
+ SBListChunkRanges(safe_browsing::kMalwareList)));
}
// Large requests are (probably) a sign of database corruption.

Powered by Google App Engine
This is Rietveld 408576698