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

Side by Side Diff: remoting/client/plugin/pepper_url_request.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "remoting/client/plugin/pepper_url_request.h" 5 #include "remoting/client/plugin/pepper_url_request.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "ppapi/cpp/url_response_info.h" 10 #include "ppapi/cpp/url_response_info.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 .Run(Result(url_loader_.GetResponseInfo().GetStatusCode(), response_)); 104 .Run(Result(url_loader_.GetResponseInfo().GetStatusCode(), response_));
105 } 105 }
106 106
107 PepperUrlRequestFactory::PepperUrlRequestFactory(pp::InstanceHandle pp_instance) 107 PepperUrlRequestFactory::PepperUrlRequestFactory(pp::InstanceHandle pp_instance)
108 : pp_instance_(pp_instance) {} 108 : pp_instance_(pp_instance) {}
109 PepperUrlRequestFactory::~PepperUrlRequestFactory() {} 109 PepperUrlRequestFactory::~PepperUrlRequestFactory() {}
110 110
111 std::unique_ptr<UrlRequest> PepperUrlRequestFactory::CreateUrlRequest( 111 std::unique_ptr<UrlRequest> PepperUrlRequestFactory::CreateUrlRequest(
112 UrlRequest::Type type, 112 UrlRequest::Type type,
113 const std::string& url) { 113 const std::string& url) {
114 return base::WrapUnique(new PepperUrlRequest(pp_instance_, type, url)); 114 return base::MakeUnique<PepperUrlRequest>(pp_instance_, type, url);
115 } 115 }
116 116
117 } // namespace remoting 117 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator_factory.cc ('k') | remoting/client/software_video_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698