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

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

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/safe_browsing/safe_browsing_service.h" 5 #include "ios/chrome/browser/safe_browsing/safe_browsing_service.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/metrics/histogram_macros.h" 15 #include "base/metrics/histogram_macros.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/prefs/pref_change_registrar.h"
18 #include "base/prefs/pref_service.h"
17 #include "base/stl_util.h" 19 #include "base/stl_util.h"
18 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
19 #include "base/threading/thread.h" 21 #include "base/threading/thread.h"
20 #include "base/threading/thread_restrictions.h" 22 #include "base/threading/thread_restrictions.h"
21 #include "components/prefs/pref_change_registrar.h"
22 #include "components/prefs/pref_service.h"
23 #include "ios/chrome/browser/application_context.h" 23 #include "ios/chrome/browser/application_context.h"
24 #include "ios/chrome/browser/chrome_paths.h" 24 #include "ios/chrome/browser/chrome_paths.h"
25 #include "ios/chrome/browser/chrome_switches.h" 25 #include "ios/chrome/browser/chrome_switches.h"
26 #include "ios/chrome/browser/pref_names.h" 26 #include "ios/chrome/browser/pref_names.h"
27 #include "ios/chrome/browser/safe_browsing/ping_manager.h" 27 #include "ios/chrome/browser/safe_browsing/ping_manager.h"
28 #include "ios/chrome/browser/safe_browsing/ui_manager.h" 28 #include "ios/chrome/browser/safe_browsing/ui_manager.h"
29 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. h" 29 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. h"
30 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state_ manager.h" 30 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state_ manager.h"
31 #include "ios/web/public/web_thread.h" 31 #include "ios/web/public/web_thread.h"
32 #include "net/cookies/cookie_monster.h" 32 #include "net/cookies/cookie_monster.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 } 426 }
427 427
428 void SafeBrowsingService::OnSendDownloadRecoveryReport( 428 void SafeBrowsingService::OnSendDownloadRecoveryReport(
429 const std::string& report) { 429 const std::string& report) {
430 DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); 430 DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO);
431 if (ping_manager()) 431 if (ping_manager())
432 ping_manager()->ReportThreatDetails(report); 432 ping_manager()->ReportThreatDetails(report);
433 } 433 }
434 434
435 } // namespace safe_browsing 435 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc ('k') | ios/chrome/browser/safe_browsing/ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698