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

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: Split off NWM stuff 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
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 4b36627f5a2fe37738be16ef01465fd7087209dc..3e08f4677d62cdeb2d87461e2625ec1fa6a2267e 100644
--- a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
+++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
@@ -243,11 +243,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()));
tapted 2017/01/13 22:53:18 This is the leak - nothing would ever free the del
msw 2017/01/13 23:23:51 Plumbing unique_ptr seems right to me; thanks for
+ TabDialogs::FromWebContents(web_contents)
+ ->ShowProfileSigninConfirmation(browser_, profile_,
+ signin->GetUsernameForAuthInProgress(),
+ base::MakeUnique<SigninDialogDelegate>(
+ weak_pointer_factory_.GetWeakPtr()));
}
void OneClickSigninSyncStarter::LoadPolicyWithCachedCredentials() {

Powered by Google App Engine
This is Rietveld 408576698