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

Side by Side Diff: chrome/browser/safe_browsing/services_delegate_impl.cc

Issue 1983603002: Revert of Initialize and reset V4LocalDBManager. Instantiate V4Stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_db_realz
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/safe_browsing_db.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 } 174 }
175 175
176 void ServicesDelegateImpl::StopOnIOThread(bool shutdown) { 176 void ServicesDelegateImpl::StopOnIOThread(bool shutdown) {
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();
184 } 184 }
185 185
186 bool ServicesDelegateImpl::IsV4LocalDatabaseManagerEnabled() { 186 bool ServicesDelegateImpl::IsV4LocalDatabaseManagerEnabled() {
187 bool enabled = base::FeatureList::IsEnabled( 187 return base::FeatureList::IsEnabled(
188 kSafeBrowsingV4LocalDatabaseManagerEnabled); 188 kSafeBrowsingV4LocalDatabaseManagerEnabled);
189 #ifndef NDEBUG
190 enabled = true;
191 #endif
192 return enabled;
193 } 189 }
194 190
195 } // namespace safe_browsing 191 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « no previous file | components/safe_browsing_db.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698