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

Side by Side Diff: chrome/browser/ui/login/login_prompt.cc

Issue 1212163007: Kill renderers for bad password forms in --site-per-process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 if (password_manager && password_manager->client()->IsLoggingActive()) { 508 if (password_manager && password_manager->client()->IsLoggingActive()) {
509 password_manager::BrowserSavePasswordProgressLogger logger( 509 password_manager::BrowserSavePasswordProgressLogger logger(
510 password_manager->client()); 510 password_manager->client());
511 logger.LogMessage( 511 logger.LogMessage(
512 autofill::SavePasswordProgressLogger::STRING_SHOW_LOGIN_PROMPT_METHOD); 512 autofill::SavePasswordProgressLogger::STRING_SHOW_LOGIN_PROMPT_METHOD);
513 } 513 }
514 514
515 // Tell the password manager to look for saved passwords. 515 // Tell the password manager to look for saved passwords.
516 std::vector<PasswordForm> v; 516 std::vector<PasswordForm> v;
517 MakeInputForPasswordManager(request_url, auth_info, handler, &v); 517 MakeInputForPasswordManager(request_url, auth_info, handler, &v);
518 driver->OnPasswordFormsParsed(v); 518 driver->OnPasswordFormsParsedNoRenderCheck(v);
519 handler->SetPasswordManager(driver->GetPasswordManager()); 519 handler->SetPasswordManager(driver->GetPasswordManager());
520 520
521 handler->BuildViewForPasswordManager(driver->GetPasswordManager(), 521 handler->BuildViewForPasswordManager(driver->GetPasswordManager(),
522 explanation); 522 explanation);
523 } 523 }
524 524
525 // This callback is run on the UI thread and creates a constrained window with 525 // This callback is run on the UI thread and creates a constrained window with
526 // a LoginView to prompt the user. If the prompt is triggered because of 526 // a LoginView to prompt the user. If the prompt is triggered because of
527 // a cross origin navigation in the main frame, a blank interstitial is first 527 // a cross origin navigation in the main frame, a blank interstitial is first
528 // created which in turn creates the LoginView. Otherwise, a LoginView is 528 // created which in turn creates the LoginView. Otherwise, a LoginView is
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 net::URLRequest* request) { 586 net::URLRequest* request) {
587 bool is_main_frame = (request->load_flags() & net::LOAD_MAIN_FRAME) != 0; 587 bool is_main_frame = (request->load_flags() & net::LOAD_MAIN_FRAME) != 0;
588 LoginHandler* handler = LoginHandler::Create(auth_info, request); 588 LoginHandler* handler = LoginHandler::Create(auth_info, request);
589 BrowserThread::PostTask( 589 BrowserThread::PostTask(
590 BrowserThread::UI, FROM_HERE, 590 BrowserThread::UI, FROM_HERE,
591 base::Bind(&LoginDialogCallback, request->url(), 591 base::Bind(&LoginDialogCallback, request->url(),
592 make_scoped_refptr(auth_info), make_scoped_refptr(handler), 592 make_scoped_refptr(auth_info), make_scoped_refptr(handler),
593 is_main_frame)); 593 is_main_frame));
594 return handler; 594 return handler;
595 } 595 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager_test_base.cc ('k') | components/password_manager.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698