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

Unified Diff: chrome/browser/ui/sync/one_click_signin_sync_starter.cc

Issue 2625813003: MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used (Closed)
Patch Set: Rebase (DID NOT LAND) Created 3 years, 11 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
« no previous file with comments | « chrome/browser/ui/collected_cookies_browsertest.cc ('k') | chrome/browser/ui/tab_dialogs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/one_click_signin_sync_starter.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
index 75b33766dedd0d5a430c95e1da644eea87bf955f..672c4c32822af714f3c732f471de5c4f7cf22ac6 100644
--- a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
+++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
@@ -242,11 +242,11 @@ void OneClickSigninSyncStarter::OnRegisteredForPolicy(
content::RecordAction(
base::UserMetricsAction("Signin_Show_EnterpriseAccountPrompt"));
- TabDialogs::FromWebContents(web_contents)->ShowProfileSigninConfirmation(
- browser_,
- profile_,
- signin->GetUsernameForAuthInProgress(),
- new SigninDialogDelegate(weak_pointer_factory_.GetWeakPtr()));
+ TabDialogs::FromWebContents(web_contents)
+ ->ShowProfileSigninConfirmation(browser_, profile_,
+ signin->GetUsernameForAuthInProgress(),
+ base::MakeUnique<SigninDialogDelegate>(
+ weak_pointer_factory_.GetWeakPtr()));
}
void OneClickSigninSyncStarter::LoadPolicyWithCachedCredentials() {
« no previous file with comments | « chrome/browser/ui/collected_cookies_browsertest.cc ('k') | chrome/browser/ui/tab_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698