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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_action_view.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: chrome/browser/ui/views/toolbar/toolbar_action_view.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
index c87176112eb2fc28f0ecd23a06a8a614e7899e64..2d3eba4876aec6e4ef68f62624bb1f91bb7718ee 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
@@ -95,8 +95,10 @@ void ToolbarActionView::GetAccessibleState(ui::AXViewState* state) {
state->role = ui::AX_ROLE_BUTTON;
}
-scoped_ptr<LabelButtonBorder> ToolbarActionView::CreateDefaultBorder() const {
- scoped_ptr<LabelButtonBorder> border = LabelButton::CreateDefaultBorder();
+std::unique_ptr<LabelButtonBorder> ToolbarActionView::CreateDefaultBorder()
+ const {
+ std::unique_ptr<LabelButtonBorder> border =
+ LabelButton::CreateDefaultBorder();
border->set_insets(gfx::Insets(kBorderInset, kBorderInset,
kBorderInset, kBorderInset));
return border;

Powered by Google App Engine
This is Rietveld 408576698