Index: components/safe_browsing_db/v4_local_database_manager.cc |
diff --git a/components/safe_browsing_db/v4_local_database_manager.cc b/components/safe_browsing_db/v4_local_database_manager.cc |
index 9215dc72288f63ac34bf874e4632b7d2ff907a8c..e3e8cd4065ed465e59e41fcc3b45dd8d620a2f72 100644 |
--- a/components/safe_browsing_db/v4_local_database_manager.cc |
+++ b/components/safe_browsing_db/v4_local_database_manager.cc |
@@ -12,6 +12,7 @@ |
#include "base/bind_helpers.h" |
#include "base/callback.h" |
#include "base/memory/ptr_util.h" |
+#include "components/safe_browsing_db/v4_feature_list.h" |
#include "content/public/browser/browser_thread.h" |
using content::BrowserThread; |
@@ -64,6 +65,15 @@ V4LocalDatabaseManager::PendingCheck::PendingCheck( |
V4LocalDatabaseManager::PendingCheck::~PendingCheck() {} |
+// static |
+V4LocalDatabaseManager* V4LocalDatabaseManager::Create( |
+ const base::FilePath& base_path) { |
+ if (!V4FeatureList::IsLocalDatabaseManagerEnabled()) { |
+ return nullptr; |
+ } |
+ return new V4LocalDatabaseManager(base_path); |
+} |
+ |
V4LocalDatabaseManager::V4LocalDatabaseManager(const base::FilePath& base_path) |
: base_path_(base_path), enabled_(false), list_infos_(GetListInfos()) { |
DCHECK(!base_path_.empty()); |