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

Unified Diff: device/test/usb_test_gadget_impl.cc

Issue 665663002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Format Created 6 years, 2 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 | « components/policy/core/common/registry_dict_win.cc ('k') | jingle/glue/fake_ssl_client_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/usb_test_gadget_impl.cc
diff --git a/device/test/usb_test_gadget_impl.cc b/device/test/usb_test_gadget_impl.cc
index e7ae97cfbc42940acb73356e85e51d3e9ec5bbcc..8bae489b6d0541198e01d27f250162347b7dc916 100644
--- a/device/test/usb_test_gadget_impl.cc
+++ b/device/test/usb_test_gadget_impl.cc
@@ -141,7 +141,7 @@ scoped_ptr<UsbTestGadget> UsbTestGadget::Claim() {
VLOG(1) << "It took " << (kClaimRetries - retries)
<< " retries to find an unclaimed device.";
- return gadget.PassAs<UsbTestGadget>();
+ return gadget.Pass();
}
UsbTestGadgetImpl::UsbTestGadgetImpl() {
@@ -181,7 +181,7 @@ scoped_ptr<net::URLFetcher> UsbTestGadgetImpl::CreateURLFetcher(
request_context_.get(),
base::MessageLoop::current()->message_loop_proxy()));
- return url_fetcher.PassAs<net::URLFetcher>();
+ return url_fetcher;
}
int UsbTestGadgetImpl::SimplePOSTRequest(const GURL& url,
« no previous file with comments | « components/policy/core/common/registry_dict_win.cc ('k') | jingle/glue/fake_ssl_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698