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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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/controls/button/blue_button.h ('k') | ui/views/controls/button/checkbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/blue_button.cc
diff --git a/ui/views/controls/button/blue_button.cc b/ui/views/controls/button/blue_button.cc
index 12ea638c16000ec4f30bde53e81502a51c71c73a..c0e8b9902d01c18d179c5255a676736588954713 100644
--- a/ui/views/controls/button/blue_button.cc
+++ b/ui/views/controls/button/blue_button.cc
@@ -51,10 +51,10 @@ const char* BlueButton::GetClassName() const {
return BlueButton::kViewClassName;
}
-scoped_ptr<LabelButtonBorder> BlueButton::CreateDefaultBorder() const {
+std::unique_ptr<LabelButtonBorder> BlueButton::CreateDefaultBorder() const {
// Insets for splitting the images.
const gfx::Insets insets(5);
- scoped_ptr<LabelButtonAssetBorder> button_border(
+ std::unique_ptr<LabelButtonAssetBorder> button_border(
new LabelButtonAssetBorder(style()));
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
button_border->SetPainter(false, STATE_NORMAL, Painter::CreateImagePainter(
« no previous file with comments | « ui/views/controls/button/blue_button.h ('k') | ui/views/controls/button/checkbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698