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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (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/ui/views/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index c454d426ff8203ef096b9fdc9e7a4231459c8a06..55f4e611174bb597c726eaef7d8ad4d6b30a299e 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/infobars/infobar_view.h"
#include <algorithm>
+#include <utility>
#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
@@ -75,7 +76,7 @@ const int InfoBarView::kButtonButtonSpacing = views::kRelatedButtonHSpacing;
const int InfoBarView::kEndOfLabelSpacing = views::kItemLabelSpacing;
InfoBarView::InfoBarView(scoped_ptr<infobars::InfoBarDelegate> delegate)
- : infobars::InfoBar(delegate.Pass()),
+ : infobars::InfoBar(std::move(delegate)),
views::ExternalFocusTracker(this, NULL),
icon_(NULL),
close_button_(NULL) {
@@ -134,7 +135,7 @@ views::LabelButton* InfoBarView::CreateLabelButton(
false, views::Button::STATE_PRESSED,
views::Painter::CreateImageGridPainter(kPressedImageSet));
- button->SetBorder(button_border.Pass());
+ button->SetBorder(std::move(button_border));
button->set_animate_on_state_change(false);
button->SetTextColor(views::Button::STATE_NORMAL, GetInfobarTextColor());
button->SetTextColor(views::Button::STATE_HOVERED, GetInfobarTextColor());
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698