OLD | NEW |
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 Loading... |
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 |
OLD | NEW |