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

Unified Diff: chrome/browser/safe_browsing/services_delegate_impl.cc

Issue 1954393002: Initialize and reset V4LocalDBManager. Instantiate V4Stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_db_realz
Patch Set: CR feedback Created 4 years, 7 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 | « no previous file | components/safe_browsing_db.gypi » ('j') | components/safe_browsing_db/v4_database.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/services_delegate_impl.cc
diff --git a/chrome/browser/safe_browsing/services_delegate_impl.cc b/chrome/browser/safe_browsing/services_delegate_impl.cc
index e3b5b7a122d2ec0cf50c3b7ec3813fe8fcbc41e3..ee489261fc2e11bc14256ee76ab8e2b47ae272c8 100644
--- a/chrome/browser/safe_browsing/services_delegate_impl.cc
+++ b/chrome/browser/safe_browsing/services_delegate_impl.cc
@@ -180,12 +180,16 @@ void ServicesDelegateImpl::StopOnIOThread(bool shutdown) {
}
V4LocalDatabaseManager* ServicesDelegateImpl::CreateV4LocalDatabaseManager() {
- return new V4LocalDatabaseManager();
+ return new V4LocalDatabaseManager(SafeBrowsingService::GetBaseFilename());
}
bool ServicesDelegateImpl::IsV4LocalDatabaseManagerEnabled() {
- return base::FeatureList::IsEnabled(
+ bool enabled = base::FeatureList::IsEnabled(
kSafeBrowsingV4LocalDatabaseManagerEnabled);
+#ifndef NDEBUG
Nathan Parker 2016/05/14 00:43:41 Do you want to keep this?
vakh (use Gerrit instead) 2016/05/16 22:04:12 Yes, added a TODO until I figure out why it isn't
+ enabled = true;
+#endif
+ return enabled;
}
} // namespace safe_browsing
« no previous file with comments | « no previous file | components/safe_browsing_db.gypi » ('j') | components/safe_browsing_db/v4_database.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698