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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_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/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index f7aaaa81ba0de4986cd14f3a63012e1d1c9da700..b5c7be965a519a9c1ebb90ac69cce7e87f5ac7b7 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -228,8 +228,8 @@ class NotificationView : public views::View,
: data_(data),
delegate_(delegate),
checkbox_(NULL) {
- scoped_ptr<views::View> label_view;
- scoped_ptr<views::StyledLabel> label(
+ std::unique_ptr<views::View> label_view;
+ std::unique_ptr<views::StyledLabel> label(
new views::StyledLabel(data.display_text(), this));
label->set_auto_color_readability_enabled(false);
@@ -389,8 +389,8 @@ void AutofillDialogViews::NotificationArea::SetNotifications(
for (size_t i = 0; i < notifications_.size(); ++i) {
const DialogNotification& notification = notifications_[i];
- scoped_ptr<NotificationView> view(new NotificationView(notification,
- delegate_));
+ std::unique_ptr<NotificationView> view(
+ new NotificationView(notification, delegate_));
AddChildView(view.release());
}
@@ -492,7 +492,7 @@ AutofillDialogViews::SectionContainer::SectionContainer(
AddChildView(controls);
SetEventTargeter(
- scoped_ptr<views::ViewTargeter>(new views::ViewTargeter(this)));
+ std::unique_ptr<views::ViewTargeter>(new views::ViewTargeter(this)));
}
AutofillDialogViews::SectionContainer::~SectionContainer() {}
@@ -1377,7 +1377,7 @@ void AutofillDialogViews::InitInputsView(DialogSection section) {
ui::ComboboxModel* input_model =
delegate_->ComboboxModelForAutofillType(input.type);
- scoped_ptr<views::View> view_to_add;
+ std::unique_ptr<views::View> view_to_add;
if (input_model) {
views::Combobox* combobox = new views::Combobox(input_model);
combobox->set_listener(this);

Powered by Google App Engine
This is Rietveld 408576698