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

Unified Diff: chrome/browser/ui/views/certificate_selector.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/certificate_selector.cc
diff --git a/chrome/browser/ui/views/certificate_selector.cc b/chrome/browser/ui/views/certificate_selector.cc
index 357c550f9e78fe126c0290168c92c7be4236f760..6b9348b3ce33e1270cacbf8a2e020024b956d70d 100644
--- a/chrome/browser/ui/views/certificate_selector.cc
+++ b/chrome/browser/ui/views/certificate_selector.cc
@@ -175,7 +175,8 @@ void CertificateSelector::Show() {
table_->Select(0);
}
-void CertificateSelector::InitWithText(scoped_ptr<views::View> text_label) {
+void CertificateSelector::InitWithText(
+ std::unique_ptr<views::View> text_label) {
views::GridLayout* const layout = views::GridLayout::CreatePanel(this);
SetLayoutManager(layout);
@@ -236,7 +237,7 @@ views::View* CertificateSelector::GetInitiallyFocusedView() {
views::View* CertificateSelector::CreateExtraView() {
DCHECK(!view_cert_button_);
- scoped_ptr<views::LabelButton> button(new views::LabelButton(
+ std::unique_ptr<views::LabelButton> button(new views::LabelButton(
this, l10n_util::GetStringUTF16(IDS_PAGEINFO_CERT_INFO_BUTTON)));
button->SetStyle(views::Button::STYLE_BUTTON);
view_cert_button_ = button.get();
« no previous file with comments | « chrome/browser/ui/views/certificate_selector.h ('k') | chrome/browser/ui/views/certificate_selector_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698