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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/metrics/histogram_macros.h" 17 #include "base/metrics/histogram_macros.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/prefs/pref_change_registrar.h"
20 #include "base/prefs/pref_service.h"
21 #include "base/stl_util.h" 19 #include "base/stl_util.h"
22 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
23 #include "base/threading/thread.h" 21 #include "base/threading/thread.h"
24 #include "base/threading/thread_restrictions.h" 22 #include "base/threading/thread_restrictions.h"
25 #include "base/trace_event/trace_event.h" 23 #include "base/trace_event/trace_event.h"
26 #include "build/build_config.h" 24 #include "build/build_config.h"
27 #include "chrome/browser/browser_process.h" 25 #include "chrome/browser/browser_process.h"
28 #include "chrome/browser/chrome_notification_types.h" 26 #include "chrome/browser/chrome_notification_types.h"
29 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 27 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
30 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/profiles/profile_manager.h" 29 #include "chrome/browser/profiles/profile_manager.h"
32 #include "chrome/browser/safe_browsing/client_side_detection_service.h" 30 #include "chrome/browser/safe_browsing/client_side_detection_service.h"
33 #include "chrome/browser/safe_browsing/download_protection_service.h" 31 #include "chrome/browser/safe_browsing/download_protection_service.h"
34 #include "chrome/browser/safe_browsing/ping_manager.h" 32 #include "chrome/browser/safe_browsing/ping_manager.h"
35 #include "chrome/browser/safe_browsing/protocol_manager.h" 33 #include "chrome/browser/safe_browsing/protocol_manager.h"
36 #include "chrome/browser/safe_browsing/ui_manager.h" 34 #include "chrome/browser/safe_browsing/ui_manager.h"
37 #include "chrome/common/chrome_constants.h" 35 #include "chrome/common/chrome_constants.h"
38 #include "chrome/common/chrome_paths.h" 36 #include "chrome/common/chrome_paths.h"
39 #include "chrome/common/chrome_switches.h" 37 #include "chrome/common/chrome_switches.h"
40 #include "chrome/common/pref_names.h" 38 #include "chrome/common/pref_names.h"
41 #include "chrome/common/url_constants.h" 39 #include "chrome/common/url_constants.h"
40 #include "components/prefs/pref_change_registrar.h"
41 #include "components/prefs/pref_service.h"
42 #include "components/safe_browsing_db/database_manager.h" 42 #include "components/safe_browsing_db/database_manager.h"
43 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h " 43 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h "
44 #include "content/public/browser/browser_thread.h" 44 #include "content/public/browser/browser_thread.h"
45 #include "content/public/browser/cookie_store_factory.h" 45 #include "content/public/browser/cookie_store_factory.h"
46 #include "content/public/browser/notification_service.h" 46 #include "content/public/browser/notification_service.h"
47 #include "net/cookies/cookie_monster.h" 47 #include "net/cookies/cookie_monster.h"
48 #include "net/extras/sqlite/cookie_crypto_delegate.h" 48 #include "net/extras/sqlite/cookie_crypto_delegate.h"
49 #include "net/url_request/url_request_context.h" 49 #include "net/url_request/url_request_context.h"
50 #include "net/url_request/url_request_context_getter.h" 50 #include "net/url_request/url_request_context_getter.h"
51 51
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 } 656 }
657 657
658 void SafeBrowsingService::OnSendDownloadRecoveryReport( 658 void SafeBrowsingService::OnSendDownloadRecoveryReport(
659 const std::string& report) { 659 const std::string& report) {
660 DCHECK_CURRENTLY_ON(BrowserThread::IO); 660 DCHECK_CURRENTLY_ON(BrowserThread::IO);
661 if (ping_manager()) 661 if (ping_manager())
662 ping_manager()->ReportThreatDetails(report); 662 ping_manager()->ReportThreatDetails(report);
663 } 663 }
664 664
665 } // namespace safe_browsing 665 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698