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

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

Issue 470213002: Moving all the incident reporting stuff to a common folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@binsign
Patch Set: Created 6 years, 4 months 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/incident_handler_util.cc
diff --git a/chrome/browser/safe_browsing/incident_handler_util.cc b/chrome/browser/safe_browsing/incident_handler_util.cc
deleted file mode 100644
index e0ef4586efb78358ae44ed877f3bfdaf7c8e4802..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/incident_handler_util.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/safe_browsing/incident_handler_util.h"
-
-#include <string>
-
-#include "base/hash.h"
-#include "base/logging.h"
-#include "third_party/protobuf/src/google/protobuf/message_lite.h"
-
-namespace safe_browsing {
-
-// Computes a simple hash digest over the serialized form of |message|.
-// |message| must be in a canonical form.
-uint32_t HashMessage(const google::protobuf::MessageLite& message) {
- std::string message_string;
- if (!message.SerializeToString(&message_string)) {
- NOTREACHED();
- return 0;
- }
- return base::Hash(message_string);
-}
-
-} // namespace safe_browsing
« no previous file with comments | « chrome/browser/safe_browsing/incident_handler_util.h ('k') | chrome/browser/safe_browsing/incident_report_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698