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

Unified Diff: ios/chrome/browser/translate/chrome_ios_translate_client.mm

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change Created 4 years, 11 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: ios/chrome/browser/translate/chrome_ios_translate_client.mm
diff --git a/ios/chrome/browser/translate/chrome_ios_translate_client.mm b/ios/chrome/browser/translate/chrome_ios_translate_client.mm
index bc15df24aa3a6eab917b102e876011dea2b7b56a..19fe8c068235099f42c1400d870928266ed6984e 100644
--- a/ios/chrome/browser/translate/chrome_ios_translate_client.mm
+++ b/ios/chrome/browser/translate/chrome_ios_translate_client.mm
@@ -4,6 +4,7 @@
#include "ios/chrome/browser/translate/chrome_ios_translate_client.h"
+#include <utility>
#include <vector>
#include "base/logging.h"
@@ -61,7 +62,7 @@ scoped_ptr<infobars::InfoBar> ChromeIOSTranslateClient::CreateInfoBar(
scoped_ptr<translate::TranslateInfoBarDelegate> delegate) const {
translate::TranslateStep step = delegate->translate_step();
- scoped_ptr<InfoBarIOS> infobar(new InfoBarIOS(delegate.Pass()));
+ scoped_ptr<InfoBarIOS> infobar(new InfoBarIOS(std::move(delegate)));
base::scoped_nsobject<InfoBarController> controller;
switch (step) {
case translate::TRANSLATE_STEP_AFTER_TRANSLATE:
@@ -85,7 +86,7 @@ scoped_ptr<infobars::InfoBar> ChromeIOSTranslateClient::CreateInfoBar(
NOTREACHED();
}
infobar->SetController(controller);
- return infobar.Pass();
+ return std::move(infobar);
}
void ChromeIOSTranslateClient::ShowTranslateUI(
« no previous file with comments | « ios/chrome/browser/sync/ios_chrome_sync_client.cc ('k') | ios/chrome/browser/ui/autofill/autofill_client_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698