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

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

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 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 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/safe_browsing/incident_reporting/extension_data_collect ion.h" 28 #include "chrome/browser/safe_browsing/incident_reporting/extension_data_collect ion.h"
29 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" 29 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
30 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" 30 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
31 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload er_impl.h" 31 #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" 32 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_ delegate.h"
33 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h" 33 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h"
34 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 34 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
35 #include "chrome/common/chrome_features.h" 35 #include "chrome/common/chrome_features.h"
36 #include "chrome/common/pref_names.h" 36 #include "chrome/common/pref_names.h"
37 #include "components/prefs/pref_service.h" 37 #include "components/prefs/pref_service.h"
38 #include "components/safe_browsing/common/safe_browsing_prefs.h"
38 #include "components/safe_browsing/csd.pb.h" 39 #include "components/safe_browsing/csd.pb.h"
39 #include "components/safe_browsing_db/database_manager.h" 40 #include "components/safe_browsing_db/database_manager.h"
40 #include "components/safe_browsing_db/safe_browsing_prefs.h"
41 #include "content/public/browser/browser_thread.h" 41 #include "content/public/browser/browser_thread.h"
42 #include "content/public/browser/notification_service.h" 42 #include "content/public/browser/notification_service.h"
43 #include "net/url_request/url_request_context_getter.h" 43 #include "net/url_request/url_request_context_getter.h"
44 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h" 44 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h"
45 45
46 namespace safe_browsing { 46 namespace safe_browsing {
47 47
48 #if !defined(GOOGLE_CHROME_BUILD) 48 #if !defined(GOOGLE_CHROME_BUILD)
49 // Chromium-only flag to disable incident uploads. 49 // Chromium-only flag to disable incident uploads.
50 extern const base::Feature kIncidentReportingDisableUpload{ 50 extern const base::Feature kIncidentReportingDisableUpload{
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 if (!profile->IsOffTheRecord()) 1056 if (!profile->IsOffTheRecord())
1057 OnProfileDestroyed(profile); 1057 OnProfileDestroyed(profile);
1058 break; 1058 break;
1059 } 1059 }
1060 default: 1060 default:
1061 break; 1061 break;
1062 } 1062 }
1063 } 1063 }
1064 1064
1065 } // namespace safe_browsing 1065 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698