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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 |
OLD | NEW |