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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_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/passwords/manage_passwords_bubble_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
index 11d535eea0bf040b715c4cce11e5e7e2f27114fb..65072d7a0e0aeb08acc560c1769c2909a2598656 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -175,9 +175,11 @@ void AddTitleRowWithLink(views::GridLayout* layout,
layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing);
}
-scoped_ptr<views::LabelButton> GenerateButton(views::ButtonListener* listener,
- const base::string16& text) {
- scoped_ptr<views::LabelButton> button(new views::LabelButton(listener, text));
+std::unique_ptr<views::LabelButton> GenerateButton(
+ views::ButtonListener* listener,
+ const base::string16& text) {
+ std::unique_ptr<views::LabelButton> button(
+ new views::LabelButton(listener, text));
button->SetStyle(views::Button::STYLE_BUTTON);
return button;
}
@@ -570,7 +572,7 @@ class ManagePasswordsBubbleView::WebContentMouseHandler
private:
ManagePasswordsBubbleView* bubble_;
- scoped_ptr<views::EventMonitor> event_monitor_;
+ std::unique_ptr<views::EventMonitor> event_monitor_;
DISALLOW_COPY_AND_ASSIGN(WebContentMouseHandler);
};

Powered by Google App Engine
This is Rietveld 408576698