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

Unified Diff: chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm

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/cocoa/profiles/signin_view_controller_delegate_mac.mm
diff --git a/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm b/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm
index 68b631d9817d7d11738a31b6db7e78d0ce9ae331..2f10360674804bbd459bbacbd58758f0fb52b229 100644
--- a/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm
@@ -42,7 +42,7 @@ const int kSyncConfirmationDialogHeight = 351;
SigninViewControllerDelegateMac::SigninViewControllerDelegateMac(
SigninViewController* signin_view_controller,
- scoped_ptr<content::WebContents> web_contents,
+ std::unique_ptr<content::WebContents> web_contents,
content::WebContents* host_web_contents,
NSRect frame,
bool wait_for_size)
@@ -64,7 +64,7 @@ void SigninViewControllerDelegateMac::OnConstrainedWindowClosed(
}
// static
-scoped_ptr<content::WebContents>
+std::unique_ptr<content::WebContents>
SigninViewControllerDelegateMac::CreateGaiaWebContents(
content::WebContentsDelegate* delegate,
profiles::BubbleViewMode mode,
@@ -73,8 +73,9 @@ SigninViewControllerDelegateMac::CreateGaiaWebContents(
GURL url =
signin::GetSigninURLFromBubbleViewMode(profile, mode, access_point);
- scoped_ptr<content::WebContents> web_contents(content::WebContents::Create(
- content::WebContents::CreateParams(profile)));
+ std::unique_ptr<content::WebContents> web_contents(
+ content::WebContents::Create(
+ content::WebContents::CreateParams(profile)));
if (delegate)
web_contents->SetDelegate(delegate);
@@ -97,11 +98,12 @@ SigninViewControllerDelegateMac::CreateGaiaWebContents(
}
// static
-scoped_ptr<content::WebContents>
+std::unique_ptr<content::WebContents>
SigninViewControllerDelegateMac::CreateSyncConfirmationWebContents(
Profile* profile) {
- scoped_ptr<content::WebContents> web_contents(content::WebContents::Create(
- content::WebContents::CreateParams(profile)));
+ std::unique_ptr<content::WebContents> web_contents(
+ content::WebContents::Create(
+ content::WebContents::CreateParams(profile)));
web_contents->GetController().LoadURL(
GURL(chrome::kChromeUISyncConfirmationURL), content::Referrer(),
ui::PAGE_TRANSITION_AUTO_TOPLEVEL, std::string());

Powered by Google App Engine
This is Rietveld 408576698