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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 scoped_refptr<SafeBrowsingService> safe_browsing_service( | 48 scoped_refptr<SafeBrowsingService> safe_browsing_service( |
49 g_browser_process->safe_browsing_service()); | 49 g_browser_process->safe_browsing_service()); |
50 | 50 |
51 safe_browsing_service->RegisterDelayedAnalysisCallback( | 51 safe_browsing_service->RegisterDelayedAnalysisCallback( |
52 base::Bind(&VerifyVariationsSeedSignature)); | 52 base::Bind(&VerifyVariationsSeedSignature)); |
53 } | 53 } |
54 | 54 |
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, FROM_HERE, |
59 FROM_HERE, | 59 base::BindOnce(&VerifyVariationsSeedSignatureOnUIThread, |
60 base::Bind(&VerifyVariationsSeedSignatureOnUIThread, | 60 base::Passed(&incident_receiver))); |
61 base::Passed(&incident_receiver))); | |
62 } | 61 } |
63 | 62 |
64 } // namespace safe_browsing | 63 } // namespace safe_browsing |
OLD | NEW |