| Index: chrome/browser/password_manager/password_generation_manager.cc
|
| diff --git a/chrome/browser/password_manager/password_generation_manager.cc b/chrome/browser/password_manager/password_generation_manager.cc
|
| index fcb7a27fb27fa8748746644071f19e1df7a7c101..aeeb210e285e6c4b47f2f9593b4965fd44ae6b62 100644
|
| --- a/chrome/browser/password_manager/password_generation_manager.cc
|
| +++ b/chrome/browser/password_manager/password_generation_manager.cc
|
| @@ -19,7 +19,6 @@
|
| #include "components/autofill/core/common/form_data.h"
|
| #include "components/autofill/core/common/password_form.h"
|
| #include "content/public/browser/browser_thread.h"
|
| -#include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_contents_view.h"
|
| #include "ui/gfx/rect.h"
|
| @@ -54,10 +53,8 @@ void PasswordGenerationManager::DetectAccountCreationForms(
|
| }
|
| }
|
| }
|
| - if (!account_creation_forms.empty() && IsGenerationEnabled()) {
|
| - SendAccountCreationFormsToRenderer(web_contents_->GetRenderViewHost(),
|
| - account_creation_forms);
|
| - }
|
| + if (!account_creation_forms.empty() && IsGenerationEnabled())
|
| + driver_->AccountCreationFormsFound(account_creation_forms);
|
| }
|
|
|
| // In order for password generation to be enabled, we need to make sure:
|
| @@ -77,13 +74,6 @@ bool PasswordGenerationManager::IsGenerationEnabled() const {
|
| return true;
|
| }
|
|
|
| -void PasswordGenerationManager::SendAccountCreationFormsToRenderer(
|
| - content::RenderViewHost* host,
|
| - const std::vector<autofill::FormData>& forms) {
|
| - host->Send(new AutofillMsg_AccountCreationFormsDetected(
|
| - host->GetRoutingID(), forms));
|
| -}
|
| -
|
| gfx::RectF PasswordGenerationManager::GetBoundsInScreenSpace(
|
| const gfx::RectF& bounds) {
|
| gfx::Rect client_area;
|
|
|