| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |