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

Side by Side Diff: media/mojo/services/mojo_provision_fetcher.cc

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 "media/mojo/services/mojo_provision_fetcher.h" 5 #include "media/mojo/services/mojo_provision_fetcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 12 matching lines...) Expand all
23 const ResponseCB& response_cb) { 23 const ResponseCB& response_cb) {
24 DVLOG(1) << __FUNCTION__; 24 DVLOG(1) << __FUNCTION__;
25 provision_fetcher_ptr_->Retrieve( 25 provision_fetcher_ptr_->Retrieve(
26 default_url, request_data, 26 default_url, request_data,
27 base::Bind(&MojoProvisionFetcher::OnResponse, weak_factory_.GetWeakPtr(), 27 base::Bind(&MojoProvisionFetcher::OnResponse, weak_factory_.GetWeakPtr(),
28 response_cb)); 28 response_cb));
29 } 29 }
30 30
31 void MojoProvisionFetcher::OnResponse(const ResponseCB& response_cb, 31 void MojoProvisionFetcher::OnResponse(const ResponseCB& response_cb,
32 bool success, 32 bool success,
33 const std::string& response) { 33 mojo::String response) {
34 response_cb.Run(success, response); 34 response_cb.Run(success, response);
35 } 35 }
36 36
37 } // namespace media 37 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_provision_fetcher.h ('k') | mojo/common/common_custom_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698