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

Unified Diff: components/safe_browsing_db/test_database_manager.cc

Issue 2648193002: SafeBrowsing: Move enabled_ to base class DB Manager (Closed)
Patch Set: Update comments Created 3 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/test_database_manager.cc
diff --git a/components/safe_browsing_db/test_database_manager.cc b/components/safe_browsing_db/test_database_manager.cc
index 3209bb3984db4b913a11acf93006529040469523..b6805ac01316986caf72d5c360ee01d96fc67c4c 100644
--- a/components/safe_browsing_db/test_database_manager.cc
+++ b/components/safe_browsing_db/test_database_manager.cc
@@ -114,4 +114,16 @@ bool TestSafeBrowsingDatabaseManager::IsSupported() const {
return false;
}
+void TestSafeBrowsingDatabaseManager::StartOnIOThread(
+ net::URLRequestContextGetter* request_context_getter,
+ const V4ProtocolConfig& config) {
+ SafeBrowsingDatabaseManager::StartOnIOThread(request_context_getter, config);
+ enabled_ = true;
+}
+
+void TestSafeBrowsingDatabaseManager::StopOnIOThread(bool shutdown) {
+ enabled_ = false;
+ SafeBrowsingDatabaseManager::StopOnIOThread(shutdown);
+}
+
} // namespace safe_browsing
« no previous file with comments | « components/safe_browsing_db/test_database_manager.h ('k') | components/safe_browsing_db/v4_local_database_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698