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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 809903005: ui/views: Cleanup usage of scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need of Pass() Created 5 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
« no previous file with comments | « ui/views/border.cc ('k') | ui/views/event_monitor_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index fe522d906313d5c7bb2aeca0af55afef3ab7c3c4..52250cfac08d6e175be67dbd5dd031e1490b8747 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -335,7 +335,7 @@ const char* LabelButton::GetClassName() const {
}
scoped_ptr<LabelButtonBorder> LabelButton::CreateDefaultBorder() const {
- return scoped_ptr<LabelButtonBorder>(new LabelButtonBorder(style_));
+ return make_scoped_ptr(new LabelButtonBorder(style_));
}
void LabelButton::SetBorder(scoped_ptr<Border> border) {
« no previous file with comments | « ui/views/border.cc ('k') | ui/views/event_monitor_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698