| OLD | NEW |
| 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/variations_seed_signat
ure_analyzer.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/variations_seed_signat
ure_analyzer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 14 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
| 15 #include "chrome/browser/safe_browsing/incident_reporting/variations_seed_signat
ure_incident.h" | 15 #include "chrome/browser/safe_browsing/incident_reporting/variations_seed_signat
ure_incident.h" |
| 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 17 #include "chrome/common/safe_browsing/csd.pb.h" | 17 #include "components/safe_browsing/csd.pb.h" |
| 18 #include "components/variations/service/variations_service.h" | 18 #include "components/variations/service/variations_service.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 | 20 |
| 21 namespace safe_browsing { | 21 namespace safe_browsing { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 void VerifyVariationsSeedSignatureOnUIThread( | 25 void VerifyVariationsSeedSignatureOnUIThread( |
| 26 std::unique_ptr<IncidentReceiver> incident_receiver) { | 26 std::unique_ptr<IncidentReceiver> incident_receiver) { |
| 27 variations::VariationsService* variations_service = | 27 variations::VariationsService* variations_service = |
| (...skipping 27 matching lines...) Expand all Loading... |
| 55 void VerifyVariationsSeedSignature( | 55 void VerifyVariationsSeedSignature( |
| 56 std::unique_ptr<IncidentReceiver> incident_receiver) { | 56 std::unique_ptr<IncidentReceiver> incident_receiver) { |
| 57 content::BrowserThread::PostTask( | 57 content::BrowserThread::PostTask( |
| 58 content::BrowserThread::UI, | 58 content::BrowserThread::UI, |
| 59 FROM_HERE, | 59 FROM_HERE, |
| 60 base::Bind(&VerifyVariationsSeedSignatureOnUIThread, | 60 base::Bind(&VerifyVariationsSeedSignatureOnUIThread, |
| 61 base::Passed(&incident_receiver))); | 61 base::Passed(&incident_receiver))); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace safe_browsing | 64 } // namespace safe_browsing |
| OLD | NEW |