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

Side by Side Diff: content/browser/media/android/url_provision_fetcher.cc

Issue 2256173002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace a WrapUnique() nested inside a MakeUnique() Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/media/android/url_provision_fetcher.h" 5 #include "content/browser/media/android/url_provision_fetcher.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "content/public/browser/android/provision_fetcher_factory.h" 8 #include "content/public/browser/android/provision_fetcher_factory.h"
9 #include "media/base/bind_to_current_loop.h" 9 #include "media/base/bind_to_current_loop.h"
10 #include "net/url_request/url_fetcher.h" 10 #include "net/url_request/url_fetcher.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // URLFetcher implementation calls OnURLFetchComplete() on the same thread 65 // URLFetcher implementation calls OnURLFetchComplete() on the same thread
66 // that called Start() and it does this asynchronously. 66 // that called Start() and it does this asynchronously.
67 response_cb_.Run(success, response); 67 response_cb_.Run(success, response);
68 } 68 }
69 69
70 // Implementation of content public method CreateProvisionFetcher(). 70 // Implementation of content public method CreateProvisionFetcher().
71 71
72 std::unique_ptr<media::ProvisionFetcher> CreateProvisionFetcher( 72 std::unique_ptr<media::ProvisionFetcher> CreateProvisionFetcher(
73 net::URLRequestContextGetter* context_getter) { 73 net::URLRequestContextGetter* context_getter) {
74 DCHECK(context_getter); 74 DCHECK(context_getter);
75 return base::WrapUnique(new URLProvisionFetcher(context_getter)); 75 return base::MakeUnique<URLProvisionFetcher>(context_getter);
76 } 76 }
77 77
78 } // namespace content 78 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/upload_data_stream_builder.cc ('k') | content/browser/media/capture/screen_capture_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698