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

Unified Diff: chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/signin/fake_profile_oauth2_token_service_builder.cc
diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc b/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
index 51a6bda8d3b40bfba6ad5220c5d5a8b8fdcd8297..4f9789559afde7a516ebb0db670f4870ff5befe0 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
+#include <utility>
+
#include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
// TODO(blundell): Should these be namespaced?
@@ -11,7 +13,7 @@ scoped_ptr<KeyedService> BuildFakeProfileOAuth2TokenService(
content::BrowserContext* context) {
scoped_ptr<FakeProfileOAuth2TokenService> service(
new FakeProfileOAuth2TokenService());
- return service.Pass();
+ return std::move(service);
}
scoped_ptr<KeyedService> BuildAutoIssuingFakeProfileOAuth2TokenService(
@@ -19,5 +21,5 @@ scoped_ptr<KeyedService> BuildAutoIssuingFakeProfileOAuth2TokenService(
scoped_ptr<FakeProfileOAuth2TokenService> service(
new FakeProfileOAuth2TokenService());
service->set_auto_post_fetch_response_on_message_loop(true);
- return service.Pass();
+ return std::move(service);
}

Powered by Google App Engine
This is Rietveld 408576698