OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/safe_browsing_service.h" | 5 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 | 1342 |
1343 if (enable) | 1343 if (enable) |
1344 Start(); | 1344 Start(); |
1345 else | 1345 else |
1346 Stop(); | 1346 Stop(); |
1347 | 1347 |
1348 if (csd_service_.get()) | 1348 if (csd_service_.get()) |
1349 csd_service_->SetEnabledAndRefreshState(enable); | 1349 csd_service_->SetEnabledAndRefreshState(enable); |
1350 if (download_service_.get()) { | 1350 if (download_service_.get()) { |
1351 download_service_->SetEnabled( | 1351 download_service_->SetEnabled( |
1352 enable && CommandLine::ForCurrentProcess()->HasSwitch( | 1352 enable && !CommandLine::ForCurrentProcess()->HasSwitch( |
1353 switches::kEnableImprovedDownloadProtection)); | 1353 switches::kDisableImprovedDownloadProtection)); |
1354 } | 1354 } |
1355 } | 1355 } |
OLD | NEW |