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

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

Issue 2062013002: Fetch incremental updates. Store new state in V4Store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git fetch && git pull Created 4 years, 6 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/BUILD.gn » ('j') | components/safe_browsing_db/v4_database.h » ('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 5eba56f7716539bb0d9f7b032affc34352cf31fe..8a513a410e98fc748e33ac1e064a4ea258dbc7e5 100644
--- a/chrome/browser/safe_browsing/services_delegate_impl.cc
+++ b/chrome/browser/safe_browsing/services_delegate_impl.cc
@@ -17,12 +17,14 @@
namespace safe_browsing {
+#ifdef NDEBUG
Scott Hess - ex-Googler 2016/06/21 22:23:25 Grrr, stupid compiler. WDYT of structuring the la
vakh (use Gerrit instead) 2016/06/23 06:23:49 D'oh! Should have done that in the first place. Do
namespace {
const base::Feature kSafeBrowsingV4LocalDatabaseManagerEnabled {
"SafeBrowsingV4LocalDatabaseManagerEnabled",
base::FEATURE_DISABLED_BY_DEFAULT
};
} // namespace
+#endif
// static
std::unique_ptr<ServicesDelegate> ServicesDelegate::Create(
@@ -184,8 +186,13 @@ V4LocalDatabaseManager* ServicesDelegateImpl::CreateV4LocalDatabaseManager() {
}
bool ServicesDelegateImpl::IsV4LocalDatabaseManagerEnabled() {
- return base::FeatureList::IsEnabled(
- kSafeBrowsingV4LocalDatabaseManagerEnabled);
+#ifndef NDEBUG
+ return true;
+#else
+ bool enabled =
+ base::FeatureList::IsEnabled(kSafeBrowsingV4LocalDatabaseManagerEnabled);
+ return enabled;
+#endif
}
} // namespace safe_browsing
« no previous file with comments | « no previous file | components/safe_browsing_db/BUILD.gn » ('j') | components/safe_browsing_db/v4_database.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698