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

Unified Diff: remoting/client/plugin/pepper_url_request.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/pepper_url_request.h ('k') | remoting/client/plugin/pepper_video_renderer_2d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_url_request.cc
diff --git a/remoting/client/plugin/pepper_url_request.cc b/remoting/client/plugin/pepper_url_request.cc
index 31f3ef8e6328c0760b429dd1e558ab870cef976f..a2b2f923f3920ce5ad35ef372a1ccd0ae364d1ab 100644
--- a/remoting/client/plugin/pepper_url_request.cc
+++ b/remoting/client/plugin/pepper_url_request.cc
@@ -6,6 +6,7 @@
#include "base/callback_helpers.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "ppapi/cpp/url_response_info.h"
// Read buffer we allocate per read when reading response from
@@ -107,10 +108,10 @@ PepperUrlRequestFactory::PepperUrlRequestFactory(pp::InstanceHandle pp_instance)
: pp_instance_(pp_instance) {}
PepperUrlRequestFactory::~PepperUrlRequestFactory() {}
-scoped_ptr<UrlRequest> PepperUrlRequestFactory::CreateUrlRequest(
+std::unique_ptr<UrlRequest> PepperUrlRequestFactory::CreateUrlRequest(
UrlRequest::Type type,
const std::string& url) {
- return make_scoped_ptr(new PepperUrlRequest(pp_instance_, type, url));
+ return base::WrapUnique(new PepperUrlRequest(pp_instance_, type, url));
}
} // namespace remoting
« no previous file with comments | « remoting/client/plugin/pepper_url_request.h ('k') | remoting/client/plugin/pepper_video_renderer_2d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698