Chromium Code Reviews| Index: components/autofill/content/browser/autofill_driver_impl.cc |
| diff --git a/components/autofill/content/browser/autofill_driver_impl.cc b/components/autofill/content/browser/autofill_driver_impl.cc |
| index 43e5d92a2d2fc1b0460409b34bda80943961acc7..622bbe8d38ab4b1b166ac70848f4e9005bfd92c6 100644 |
| --- a/components/autofill/content/browser/autofill_driver_impl.cc |
| +++ b/components/autofill/content/browser/autofill_driver_impl.cc |
| @@ -1,9 +1,7 @@ |
| // Copyright 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| - |
| #include "components/autofill/content/browser/autofill_driver_impl.h" |
| - |
| #include "base/command_line.h" |
| #include "base/threading/sequenced_worker_pool.h" |
| #include "components/autofill/core/browser/autofill_external_delegate.h" |
| @@ -131,6 +129,17 @@ void AutofillDriverImpl::SendAutofillTypePredictionsToRenderer( |
| type_predictions)); |
| } |
| +void AutofillDriverImpl::RemovePasswordAutofillSuggestion( |
| + const PasswordForm& password_form) { |
| + if (!RendererIsAvailable()) |
|
vabr (Chromium)
2014/03/07 23:43:36
You can leave this test, and check host below for
riadh.chtara
2014/03/14 17:16:08
Done.
|
| + return; |
| + |
| + content::RenderViewHost* host = web_contents()->GetRenderViewHost(); |
| + |
| + host->Send(new AutofillMsg_RemovePasswordSuggestion(host->GetRoutingID(), |
| + password_form)); |
| +} |
| + |
| void AutofillDriverImpl::RendererShouldAcceptDataListSuggestion( |
| const base::string16& value) { |
| if (!RendererIsAvailable()) |