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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/incident_reporting_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 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 #include <stddef.h> 8 #include <stddef.h>
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/metrics/field_trial.h" 14 #include "base/metrics/field_trial.h"
15 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
16 #include "base/prefs/pref_service.h"
17 #include "base/process/process_info.h" 16 #include "base/process/process_info.h"
18 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
19 #include "base/stl_util.h" 18 #include "base/stl_util.h"
20 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
21 #include "base/thread_task_runner_handle.h" 20 #include "base/thread_task_runner_handle.h"
22 #include "base/threading/sequenced_worker_pool.h" 21 #include "base/threading/sequenced_worker_pool.h"
23 #include "build/build_config.h" 22 #include "build/build_config.h"
24 #include "chrome/browser/chrome_notification_types.h" 23 #include "chrome/browser/chrome_notification_types.h"
25 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 24 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
26 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
27 #include "chrome/browser/safe_browsing/incident_reporting/environment_data_colle ction.h" 26 #include "chrome/browser/safe_browsing/incident_reporting/environment_data_colle ction.h"
28 #include "chrome/browser/safe_browsing/incident_reporting/extension_data_collect ion.h" 27 #include "chrome/browser/safe_browsing/incident_reporting/extension_data_collect ion.h"
29 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" 28 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
30 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" 29 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
31 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload er_impl.h" 30 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload er_impl.h"
32 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_ delegate.h" 31 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_ delegate.h"
33 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h" 32 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h"
34 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 33 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
35 #include "chrome/common/pref_names.h" 34 #include "chrome/common/pref_names.h"
36 #include "chrome/common/safe_browsing/csd.pb.h" 35 #include "chrome/common/safe_browsing/csd.pb.h"
36 #include "components/prefs/pref_service.h"
37 #include "components/safe_browsing_db/database_manager.h" 37 #include "components/safe_browsing_db/database_manager.h"
38 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h " 38 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h "
39 #include "content/public/browser/browser_thread.h" 39 #include "content/public/browser/browser_thread.h"
40 #include "content/public/browser/notification_service.h" 40 #include "content/public/browser/notification_service.h"
41 #include "net/url_request/url_request_context_getter.h" 41 #include "net/url_request/url_request_context_getter.h"
42 42
43 namespace safe_browsing { 43 namespace safe_browsing {
44 44
45 namespace { 45 namespace {
46 46
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 if (!profile->IsOffTheRecord()) 1070 if (!profile->IsOffTheRecord())
1071 OnProfileDestroyed(profile); 1071 OnProfileDestroyed(profile);
1072 break; 1072 break;
1073 } 1073 }
1074 default: 1074 default:
1075 break; 1075 break;
1076 } 1076 }
1077 } 1077 }
1078 1078
1079 } // namespace safe_browsing 1079 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698