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

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

Issue 657333002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/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 e5886642e94970b6b14925dcb4d30331ad8bc771..fc620e9997c2fe8f49ea55967ffc09ece30e3f84 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -126,7 +126,7 @@ views::LabelButton* InfoBarView::CreateLabelButton(
views::Painter::CreateImageGridPainter(kPressedImageSet));
views::LabelButton* label_button = new views::LabelButton(listener, text);
- label_button->SetBorder(label_button_border.PassAs<views::Border>());
+ label_button->SetBorder(label_button_border.Pass());
label_button->set_animate_on_state_change(false);
label_button->SetTextColor(views::Button::STATE_NORMAL, SK_ColorBLACK);
label_button->SetTextColor(views::Button::STATE_HOVERED, SK_ColorBLACK);
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/location_bar/origin_chip_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698