@@ -495,15 +495,6 @@ void OnClientCertificateSelected(
495495 }
496496}
497497
498- void PassLoginInformation (scoped_refptr<LoginHandler> login_handler,
499- gin_helper::Arguments* args) {
500- base::string16 username, password;
501- if (args->GetNext (&username) && args->GetNext (&password))
502- login_handler->Login (username, password);
503- else
504- login_handler->CancelAuth ();
505- }
506-
507498#if defined(USE_NSS_CERTS)
508499int ImportIntoCertStore (CertificateManagerModel* model,
509500 const base::DictionaryValue& options) {
@@ -667,25 +658,6 @@ void App::OnNewWindowForTab() {
667658}
668659#endif
669660
670- void App::OnLogin (scoped_refptr<LoginHandler> login_handler,
671- const base::DictionaryValue& request_details) {
672- v8::Locker locker (isolate ());
673- v8::HandleScope handle_scope (isolate ());
674- bool prevent_default = false ;
675- content::WebContents* web_contents = login_handler->GetWebContents ();
676- if (web_contents) {
677- prevent_default =
678- Emit (" login" , WebContents::FromOrCreate (isolate (), web_contents),
679- request_details, *login_handler->auth_info (),
680- base::BindOnce (&PassLoginInformation,
681- base::RetainedRef (login_handler)));
682- }
683-
684- // Default behavior is to always cancel the auth.
685- if (!prevent_default)
686- login_handler->CancelAuth ();
687- }
688-
689661bool App::CanCreateWindow (
690662 content::RenderFrameHost* opener,
691663 const GURL& opener_url,
0 commit comments