summaryrefslogtreecommitdiffstats
path: root/components/safe_browsing_db/safe_browsing_api_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/safe_browsing_db/safe_browsing_api_handler.cc')
-rw-r--r--components/safe_browsing_db/safe_browsing_api_handler.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/components/safe_browsing_db/safe_browsing_api_handler.cc b/components/safe_browsing_db/safe_browsing_api_handler.cc
index 178a35d..528dccb 100644
--- a/components/safe_browsing_db/safe_browsing_api_handler.cc
+++ b/components/safe_browsing_db/safe_browsing_api_handler.cc
@@ -7,20 +7,6 @@
namespace safe_browsing {
-namespace {
-
-// TODO(nparker): Remove this as part of crbug/589610.
-void OnRequestDoneShim(
- const SafeBrowsingApiHandler::URLCheckCallbackMeta& callback,
- SBThreatType sb_threat_type,
- const std::string& raw_metadata) {
- ThreatMetadata metadata_struct;
- metadata_struct.raw_metadata = raw_metadata;
- callback.Run(sb_threat_type, metadata_struct);
-}
-
-} // namespace
-
SafeBrowsingApiHandler* SafeBrowsingApiHandler::instance_ = NULL;
// static
@@ -33,14 +19,4 @@ SafeBrowsingApiHandler* SafeBrowsingApiHandler::GetInstance() {
return instance_;
}
-// TODO(nparker): Remove this as part of crbug/589610.
-// Default impl since clank/ code doesn't yet support this.
-void SafeBrowsingApiHandler::StartURLCheck(
- const URLCheckCallbackMeta& callback,
- const GURL& url,
- const std::vector<SBThreatType>& threat_types) {
- URLCheckCallback impl_callback = base::Bind(OnRequestDoneShim, callback);
- StartURLCheck(impl_callback, url, threat_types);
-}
-
} // namespace safe_browsing