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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/incident_reporting/incident_reporting_ser vice.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser vice.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "base/process/process_info.h" 14 #include "base/process/process_info.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/thread_task_runner_handle.h" 17 #include "base/thread_task_runner_handle.h"
18 #include "base/threading/sequenced_worker_pool.h" 18 #include "base/threading/sequenced_worker_pool.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/chrome_notification_types.h" 20 #include "chrome/browser/chrome_notification_types.h"
21 #include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h"
22 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/safe_browsing/database_manager.h" 22 #include "chrome/browser/safe_browsing/database_manager.h"
24 #include "chrome/browser/safe_browsing/incident_reporting/environment_data_colle ction.h" 23 #include "chrome/browser/safe_browsing/incident_reporting/environment_data_colle ction.h"
25 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" 24 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
26 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" 25 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
27 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload er_impl.h" 26 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload er_impl.h"
28 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_ delegate.h" 27 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_ delegate.h"
29 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h" 28 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h"
30 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 29 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
31 #include "chrome/common/pref_names.h" 30 #include "chrome/common/pref_names.h"
32 #include "chrome/common/safe_browsing/csd.pb.h" 31 #include "chrome/common/safe_browsing/csd.pb.h"
32 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h "
33 #include "content/public/browser/browser_thread.h" 33 #include "content/public/browser/browser_thread.h"
34 #include "content/public/browser/notification_service.h" 34 #include "content/public/browser/notification_service.h"
35 #include "net/url_request/url_request_context_getter.h" 35 #include "net/url_request/url_request_context_getter.h"
36 36
37 namespace safe_browsing { 37 namespace safe_browsing {
38 38
39 namespace { 39 namespace {
40 40
41 // The action taken for an incident; used for user metrics (see 41 // The action taken for an incident; used for user metrics (see
42 // LogIncidentDataType). 42 // LogIncidentDataType).
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 if (!profile->IsOffTheRecord()) 940 if (!profile->IsOffTheRecord())
941 OnProfileDestroyed(profile); 941 OnProfileDestroyed(profile);
942 break; 942 break;
943 } 943 }
944 default: 944 default:
945 break; 945 break;
946 } 946 }
947 } 947 }
948 948
949 } // namespace safe_browsing 949 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698