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

Unified Diff: chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
diff --git a/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm b/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
index aef043ba5df8684e31c5d6d268f92115ec052fdf..475c511b4e19e148968ebf61f7880dd7453753c4 100644
--- a/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
+++ b/chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
@@ -5,6 +5,8 @@
#import <Cocoa/Cocoa.h>
#include <stddef.h>
+#include <utility>
+
#import "base/mac/scoped_nsobject.h"
#include "base/macros.h"
#import "base/strings/string_util.h"
@@ -104,7 +106,7 @@ class TranslationInfoBarTest : public CocoaProfileTest {
scoped_ptr<translate::TranslateInfoBarDelegate> delegate(
new MockTranslateInfoBarDelegate(web_contents_.get(), type, error));
scoped_ptr<infobars::InfoBar> infobar(
- chrome_translate_client->CreateInfoBar(delegate.Pass()));
+ chrome_translate_client->CreateInfoBar(std::move(delegate)));
if (infobar_)
infobar_->CloseSoon();
infobar_ = static_cast<InfoBarCocoa*>(infobar.release());

Powered by Google App Engine
This is Rietveld 408576698