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..41f5404723e82b97d5ed7eaa6a0dde0bfc36f47d 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 { |
| @@ -204,4 +205,14 @@ void ContentAutofillDriver::SetAutofillManager( |
| autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); |
| } |
| +content::WebContents* ContentAutofillDriver::web_contents() { |
| + return content::WebContents::FromRenderFrameHost(render_frame_host_); |
| +} |
| + |
| +void ContentAutofillDriver::LinkClicked(const GURL& url, |
|
Peter Kasting
2014/12/23 21:20:34
The order of functions in the .cc file should matc
Pritam Nikam
2014/12/24 11:16:57
Done.
|
| + WindowOpenDisposition disposition) { |
| + web_contents()->OpenURL(content::OpenURLParams( |
| + url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); |
| +} |
| + |
| } // namespace autofill |