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

Unified Diff: components/translate/core/browser/translate_infobar_delegate.cc

Issue 1550383002: Convert Pass()→std::move() in //components (Android edition) (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
« no previous file with comments | « components/sessions/core/in_memory_tab_restore_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_infobar_delegate.cc
diff --git a/components/translate/core/browser/translate_infobar_delegate.cc b/components/translate/core/browser/translate_infobar_delegate.cc
index d0384669fbaf31cff46c0554fda1ef507733b632..c8fd02d34b94063f44df0ef9bda90a7576d654b2 100644
--- a/components/translate/core/browser/translate_infobar_delegate.cc
+++ b/components/translate/core/browser/translate_infobar_delegate.cc
@@ -5,6 +5,7 @@
#include "components/translate/core/browser/translate_infobar_delegate.h"
#include <algorithm>
+#include <utility>
#include "base/i18n/string_compare.h"
#include "base/metrics/histogram_macros.h"
@@ -105,9 +106,9 @@ void TranslateInfoBarDelegate::Create(
original_language, target_language, error_type,
triggered_from_menu))));
if (old_delegate)
- infobar_manager->ReplaceInfoBar(old_infobar, infobar.Pass());
+ infobar_manager->ReplaceInfoBar(old_infobar, std::move(infobar));
else
- infobar_manager->AddInfoBar(infobar.Pass());
+ infobar_manager->AddInfoBar(std::move(infobar));
}
void TranslateInfoBarDelegate::UpdateOriginalLanguage(
« no previous file with comments | « components/sessions/core/in_memory_tab_restore_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698