OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" |
11 #include "base/debug/leak_tracker.h" | 11 #include "base/debug/leak_tracker.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/prefs/pref_change_registrar.h" |
14 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
15 #include "base/prefs/public/pref_change_registrar.h" | |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
19 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/metrics/metrics_service.h" | 21 #include "chrome/browser/metrics/metrics_service.h" |
22 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" | 22 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/profiles/profile_manager.h" | 24 #include "chrome/browser/profiles/profile_manager.h" |
25 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 25 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 #if defined(FULL_SAFE_BROWSING) | 486 #if defined(FULL_SAFE_BROWSING) |
487 if (csd_service_.get()) | 487 if (csd_service_.get()) |
488 csd_service_->SetEnabledAndRefreshState(enable); | 488 csd_service_->SetEnabledAndRefreshState(enable); |
489 if (download_service_.get()) { | 489 if (download_service_.get()) { |
490 download_service_->SetEnabled( | 490 download_service_->SetEnabled( |
491 enable && !CommandLine::ForCurrentProcess()->HasSwitch( | 491 enable && !CommandLine::ForCurrentProcess()->HasSwitch( |
492 switches::kDisableImprovedDownloadProtection)); | 492 switches::kDisableImprovedDownloadProtection)); |
493 } | 493 } |
494 #endif | 494 #endif |
495 } | 495 } |
OLD | NEW |