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

Side by Side 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: Nits: Added some comments in BUILD.gn. Using #else for platform_type until I resolve the android bu… 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/services_delegate_impl.h" 5 #include "chrome/browser/safe_browsing/services_delegate_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 if (v4_local_database_manager_.get()) { 177 if (v4_local_database_manager_.get()) {
178 v4_local_database_manager_->StopOnIOThread(shutdown); 178 v4_local_database_manager_->StopOnIOThread(shutdown);
179 } 179 }
180 } 180 }
181 181
182 V4LocalDatabaseManager* ServicesDelegateImpl::CreateV4LocalDatabaseManager() { 182 V4LocalDatabaseManager* ServicesDelegateImpl::CreateV4LocalDatabaseManager() {
183 return new V4LocalDatabaseManager(SafeBrowsingService::GetBaseFilename()); 183 return new V4LocalDatabaseManager(SafeBrowsingService::GetBaseFilename());
184 } 184 }
185 185
186 bool ServicesDelegateImpl::IsV4LocalDatabaseManagerEnabled() { 186 bool ServicesDelegateImpl::IsV4LocalDatabaseManagerEnabled() {
187 return base::FeatureList::IsEnabled( 187 bool enabled =
188 kSafeBrowsingV4LocalDatabaseManagerEnabled); 188 base::FeatureList::IsEnabled(kSafeBrowsingV4LocalDatabaseManagerEnabled);
189 #ifndef NDEBUG
190 enabled = true;
191 #endif
Scott Hess - ex-Googler 2016/06/17 22:53:42 I'd be comfortable with just having the #if case r
vakh (use Gerrit instead) 2016/06/20 22:28:42 Done.
192 return enabled;
189 } 193 }
190 194
191 } // namespace safe_browsing 195 } // namespace safe_browsing
OLDNEW
« 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