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

Unified Diff: chrome/browser/local_discovery/privetv3_setup_flow_unittest.cc

Issue 640353003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo 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
Index: chrome/browser/local_discovery/privetv3_setup_flow_unittest.cc
diff --git a/chrome/browser/local_discovery/privetv3_setup_flow_unittest.cc b/chrome/browser/local_discovery/privetv3_setup_flow_unittest.cc
index d25f982c883adef84ae2d0a765392941b49137f6..5cf3e28ae2864b9b3300beeddd1110fef4e824d7 100644
--- a/chrome/browser/local_discovery/privetv3_setup_flow_unittest.cc
+++ b/chrome/browser/local_discovery/privetv3_setup_flow_unittest.cc
@@ -92,7 +92,7 @@ class MockDelegate : public PrivetV3SetupFlow::Delegate {
const PrivetClientCallback& callback) override {
scoped_ptr<MockPrivetHTTPClient> privet_client(new MockPrivetHTTPClient());
privet_client_ptr_ = privet_client.get();
- callback.Run(privet_client.PassAs<PrivetHTTPClient>());
+ callback.Run(privet_client.Pass());
}
MOCK_METHOD2(ConfirmSecurityCode,
void(const std::string&, const ResultCallback&));
@@ -101,8 +101,7 @@ class MockDelegate : public PrivetV3SetupFlow::Delegate {
MOCK_METHOD0(OnSetupError, void());
virtual scoped_ptr<GCDApiFlow> CreateApiFlow() override {
- scoped_ptr<MockGCDApiFlow> mock_gcd(new MockGCDApiFlow(this));
- return mock_gcd.PassAs<GCDApiFlow>();
+ return make_scoped_ptr(new MockGCDApiFlow(this));
}
void ReplyWithToken() {

Powered by Google App Engine
This is Rietveld 408576698