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

Unified Diff: chrome/browser/extensions/api/identity/identity_apitest.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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/extensions/api/identity/identity_apitest.cc
diff --git a/chrome/browser/extensions/api/identity/identity_apitest.cc b/chrome/browser/extensions/api/identity/identity_apitest.cc
index be4a4d478e5ae2c40b6154d883ca2467c5aa0413..327d36da63942d369d263744d63a6decb3d1b4a9 100644
--- a/chrome/browser/extensions/api/identity/identity_apitest.cc
+++ b/chrome/browser/extensions/api/identity/identity_apitest.cc
@@ -4,6 +4,7 @@
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include "base/command_line.h"
@@ -306,7 +307,7 @@ class FakeGetAuthTokenFunction : public IdentityGetAuthTokenFunction {
void set_login_ui_result(bool result) { login_ui_result_ = result; }
void set_mint_token_flow(scoped_ptr<OAuth2MintTokenFlow> flow) {
- flow_ = flow.Pass();
+ flow_ = std::move(flow);
}
void set_mint_token_result(TestOAuth2MintTokenFlow::ResultType result_type) {
@@ -559,10 +560,9 @@ class IdentityTestWithSignin : public AsyncExtensionBrowserTest {
will_create_browser_context_services_subscription_ =
BrowserContextDependencyManager::GetInstance()
->RegisterWillCreateBrowserContextServicesCallbackForTesting(
- base::Bind(&IdentityTestWithSignin::
- OnWillCreateBrowserContextServices,
- base::Unretained(this)))
- .Pass();
+ base::Bind(
+ &IdentityTestWithSignin::OnWillCreateBrowserContextServices,
+ base::Unretained(this)));
}
void OnWillCreateBrowserContextServices(content::BrowserContext* context) {
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | chrome/browser/extensions/api/identity/web_auth_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698