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

Unified Diff: components/safe_browsing_db/remote_database_manager.cc

Issue 1624723002: Move remote_db_manager into the safe_browsing_db component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fetch, rebase, format 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
Index: components/safe_browsing_db/remote_database_manager.cc
diff --git a/chrome/browser/safe_browsing/remote_database_manager.cc b/components/safe_browsing_db/remote_database_manager.cc
similarity index 97%
rename from chrome/browser/safe_browsing/remote_database_manager.cc
rename to components/safe_browsing_db/remote_database_manager.cc
index 8a424997617ae90a3348a567de87d0512560a2b4..24e7167ae564bb9fd25a3cb8dd1951feb3974f2f 100644
--- a/chrome/browser/safe_browsing/remote_database_manager.cc
+++ b/components/safe_browsing_db/remote_database_manager.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/remote_database_manager.h"
+#include "components/safe_browsing_db/remote_database_manager.h"
#include <vector>
@@ -10,7 +10,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/timer/elapsed_timer.h"
-#include "chrome/browser/safe_browsing/safe_browsing_api_handler.h"
+#include "components/safe_browsing_db/safe_browsing_api_handler.h"
#include "components/variations/variations_associated_data.h"
#include "content/public/browser/browser_thread.h"
@@ -60,8 +60,10 @@ RemoteSafeBrowsingDatabaseManager::ClientRequest::ClientRequest(
Client* client,
RemoteSafeBrowsingDatabaseManager* db_manager,
const GURL& url)
- : client_(client), db_manager_(db_manager), url_(url), weak_factory_(this) {
-}
+ : client_(client),
+ db_manager_(db_manager),
+ url_(url),
+ weak_factory_(this) {}
// Static
void RemoteSafeBrowsingDatabaseManager::ClientRequest::OnRequestDoneWeak(
@@ -158,8 +160,7 @@ bool RemoteSafeBrowsingDatabaseManager::CanCheckUrl(const GURL& url) const {
url.SchemeIs(url::kFtpScheme);
}
-bool RemoteSafeBrowsingDatabaseManager::download_protection_enabled()
- const {
+bool RemoteSafeBrowsingDatabaseManager::download_protection_enabled() const {
return false;
}
« no previous file with comments | « components/safe_browsing_db/remote_database_manager.h ('k') | components/safe_browsing_db/remote_database_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698