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

Unified Diff: chrome/browser/ui/views/location_bar/search_button.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/location_bar/search_button.cc
diff --git a/chrome/browser/ui/views/location_bar/search_button.cc b/chrome/browser/ui/views/location_bar/search_button.cc
index da61a78595b232d692a8ecfab3da58635507e806..b069e8e4954f8b8f7e1abaed485ea22905998838 100644
--- a/chrome/browser/ui/views/location_bar/search_button.cc
+++ b/chrome/browser/ui/views/location_bar/search_button.cc
@@ -38,7 +38,7 @@ SearchButton::SearchButton(views::ButtonListener* listener)
border->SetPainter(true, views::Button::STATE_HOVERED, NULL);
border->SetPainter(true, views::Button::STATE_PRESSED, NULL);
border->SetPainter(true, views::Button::STATE_DISABLED, NULL);
- SetBorder(border.PassAs<views::Border>());
+ SetBorder(border.Pass());
const int kSearchButtonWidth = 56;
SetMinSize(gfx::Size(kSearchButtonWidth, 0));
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/origin_chip_view.cc ('k') | chrome/browser/ui/views/profiles/new_avatar_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698