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

Unified Diff: chrome/browser/ui/views/autofill/save_card_bubble_views.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/autofill/save_card_bubble_views.cc
diff --git a/chrome/browser/ui/views/autofill/save_card_bubble_views.cc b/chrome/browser/ui/views/autofill/save_card_bubble_views.cc
index 1175f0a6baadabb459a95871a07ba7a6135f248c..790ae694b0ddcb84b50fed38ae8f10410817395d 100644
--- a/chrome/browser/ui/views/autofill/save_card_bubble_views.cc
+++ b/chrome/browser/ui/views/autofill/save_card_bubble_views.cc
@@ -32,10 +32,10 @@ namespace {
// Fixed width of the bubble.
const int kBubbleWidth = 395;
-scoped_ptr<views::StyledLabel> CreateLegalMessageLineLabel(
+std::unique_ptr<views::StyledLabel> CreateLegalMessageLineLabel(
const LegalMessageLine& line,
views::StyledLabelListener* listener) {
- scoped_ptr<views::StyledLabel> label(
+ std::unique_ptr<views::StyledLabel> label(
new views::StyledLabel(line.text(), listener));
for (const LegalMessageLine::Link& link : line.links()) {
label->AddStyleRange(link.range,
@@ -167,8 +167,8 @@ void SaveCardBubbleViews::StyledLabelLinkClicked(views::StyledLabel* label,
}
// Create view containing everything except for the footnote.
-scoped_ptr<views::View> SaveCardBubbleViews::CreateMainContentView() {
- scoped_ptr<View> view(new View());
+std::unique_ptr<views::View> SaveCardBubbleViews::CreateMainContentView() {
+ std::unique_ptr<View> view(new View());
view->SetLayoutManager(
new views::BoxLayout(views::BoxLayout::kVertical, 0, 0,
views::kUnrelatedControlVerticalSpacing));
« no previous file with comments | « chrome/browser/ui/views/autofill/save_card_bubble_views.h ('k') | chrome/browser/ui/views/autofill/tooltip_icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698