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

Unified Diff: chrome/browser/safe_browsing/protocol_parser.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: Other minor fixes incl. using "using safe_browsing::ClassName" instead of safe_browsing::ClassName everywhere. 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_parser.cc
diff --git a/chrome/browser/safe_browsing/protocol_parser.cc b/chrome/browser/safe_browsing/protocol_parser.cc
index 135e76f661cec927852e836b4971c9b07906ca2d..1ad27c2d66a20cdc26d53c73b462250833f45248 100644
--- a/chrome/browser/safe_browsing/protocol_parser.cc
+++ b/chrome/browser/safe_browsing/protocol_parser.cc
@@ -131,9 +131,10 @@ class BufferReader {
DISALLOW_COPY_AND_ASSIGN(BufferReader);
};
-bool ParseGetHashMetadata(size_t hash_count,
- BufferReader* reader,
- std::vector<SBFullHashResult>* full_hashes) {
+bool ParseGetHashMetadata(
+ size_t hash_count,
+ BufferReader* reader,
+ std::vector<safe_browsing::SBFullHashResult>* full_hashes) {
for (size_t i = 0; i < hash_count; ++i) {
base::StringPiece line;
if (!reader->GetLine(&line))
@@ -199,7 +200,7 @@ bool ParseGetHash(const char* chunk_data,
return false;
SBFullHashResult full_hash;
- full_hash.list_id = safe_browsing::GetListId(cmd_parts[0]);
+ full_hash.list_id = GetListId(cmd_parts[0]);
size_t hash_len;
if (!base::StringToSizeT(cmd_parts[1], &hash_len))

Powered by Google App Engine
This is Rietveld 408576698