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

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

Issue 2821193005: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/safe_browsing (Closed)
Patch Set: Created 3 years, 8 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698