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

Unified Diff: components/safe_browsing_db/safe_browsing_api_handler_util.cc

Issue 1579403002: Move remote_db_manager into the safe_browsing_db component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define a variable for safe_browsing_db_mobile_unittest_sources Created 4 years, 11 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
« no previous file with comments | « components/safe_browsing_db/safe_browsing_api_handler_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/safe_browsing_api_handler_util.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_api_handler_util.cc b/components/safe_browsing_db/safe_browsing_api_handler_util.cc
similarity index 94%
rename from chrome/browser/safe_browsing/safe_browsing_api_handler_util.cc
rename to components/safe_browsing_db/safe_browsing_api_handler_util.cc
index 897ad4079be90a83be1f1818220afd87eabcad7e..d45fbc6fefb31a01ca2832463d9767f47d6fbaff 100644
--- a/chrome/browser/safe_browsing/safe_browsing_api_handler_util.cc
+++ b/components/safe_browsing_db/safe_browsing_api_handler_util.cc
@@ -2,7 +2,7 @@
// 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/safe_browsing_api_handler_util.h"
+#include "components/safe_browsing_db/safe_browsing_api_handler_util.h"
#include <stddef.h>
@@ -13,9 +13,8 @@
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
-#include "chrome/browser/safe_browsing/metadata.pb.h"
-#include "chrome/browser/safe_browsing/safe_browsing_util.h"
-
+#include "components/safe_browsing_db/metadata.pb.h"
+#include "components/safe_browsing_db/util.h"
namespace safe_browsing {
namespace {
@@ -41,9 +40,8 @@ void ReportUmaThreatSubType(SBThreatType threat_type,
"SB2.RemoteCall.ThreatSubType.PotentiallyHarmfulApp", sub_type,
UMA_THREAT_SUB_TYPE_MAX_VALUE);
} else {
- UMA_HISTOGRAM_ENUMERATION(
- "SB2.RemoteCall.ThreatSubType.SocialEngineering", sub_type,
- UMA_THREAT_SUB_TYPE_MAX_VALUE);
+ UMA_HISTOGRAM_ENUMERATION("SB2.RemoteCall.ThreatSubType.SocialEngineering",
+ sub_type, UMA_THREAT_SUB_TYPE_MAX_VALUE);
}
}
@@ -111,7 +109,6 @@ SBThreatType JavaToSBThreatType(int java_threat_num) {
} // namespace
-
// Valid examples:
// {"matches":[{"threat_type":"5"}]}
// or
« no previous file with comments | « components/safe_browsing_db/safe_browsing_api_handler_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698