Chromium Code Reviews| Index: components/autofill/content/browser/content_autofill_driver.cc |
| diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc |
| index 992b862ffae0b38afbfe7e9fa220565ee9ff5a2b..0f93b08e9d3eb8b7ba5ea2d23c20880f9c254d8f 100644 |
| --- a/components/autofill/content/browser/content_autofill_driver.cc |
| +++ b/components/autofill/content/browser/content_autofill_driver.cc |
| @@ -19,6 +19,7 @@ |
| #include "content/public/browser/render_frame_host.h" |
| #include "content/public/browser/render_view_host.h" |
| #include "content/public/browser/site_instance.h" |
| +#include "content/public/browser/web_contents.h" |
| #include "ipc/ipc_message_macros.h" |
| namespace autofill { |
| @@ -145,6 +146,14 @@ void ContentAutofillDriver::RendererShouldPreviewFieldWithValue( |
| render_frame_host_->GetRoutingID(), value)); |
| } |
| +void ContentAutofillDriver::LinkClicked(const GURL& url, |
| + WindowOpenDisposition disposition) { |
| + content::WebContents* web_contents = |
| + content::WebContents::FromRenderFrameHost(render_frame_host_); |
| + web_contents->OpenURL(content::OpenURLParams( |
| + url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); |
| +} |
|
Ilya Sherman
2015/01/06 02:54:59
When you started working on this CL, there was one
Pritam Nikam
2015/01/06 12:47:42
Done.
Abstracting the call to LinkClicked throuh
|
| + |
| bool ContentAutofillDriver::HandleMessage(const IPC::Message& message) { |
| bool handled = true; |
| IPC_BEGIN_MESSAGE_MAP(ContentAutofillDriver, message) |