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

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

Issue 855023003: Add presubmit check for scoped_ptr usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE 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
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 52250cfac08d6e175be67dbd5dd031e1490b8747..0387e1d641e64caa1bb93dc934811e27945bee58 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -191,7 +191,7 @@ void LabelButton::SetStyle(ButtonStyle style) {
style_ = style;
// Inset the button focus rect from the actual border; roughly match Windows.
if (style == STYLE_BUTTON) {
- SetFocusPainter(scoped_ptr<Painter>());
+ SetFocusPainter(nullptr);
} else {
SetFocusPainter(Painter::CreateDashedFocusPainterWithInsets(
gfx::Insets(3, 3, 3, 3)));
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/widget/desktop_aura/desktop_cursor_loader_updater_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698