Chromium Code Reviews| Index: android_webview/lib/aw_browser_dependency_factory_impl.cc |
| diff --git a/android_webview/lib/aw_browser_dependency_factory_impl.cc b/android_webview/lib/aw_browser_dependency_factory_impl.cc |
| index b054881cbe45fb182a0e10a339edbab39f96cb5f..7c4abb3443811b47acecdd30d84dce45d9e340f9 100644 |
| --- a/android_webview/lib/aw_browser_dependency_factory_impl.cc |
| +++ b/android_webview/lib/aw_browser_dependency_factory_impl.cc |
| @@ -9,6 +9,7 @@ |
| #include "base/lazy_instance.h" |
| #include "content/public/browser/content_browser_client.h" |
| #include "content/public/browser/web_contents.h" |
| +#include "content/public/browser/web_contents_source.h" |
| #include "content/public/common/content_client.h" |
| using content::BrowserContext; |
| @@ -36,8 +37,10 @@ content::BrowserContext* AwBrowserDependencyFactoryImpl::GetBrowserContext() { |
| } |
| WebContents* AwBrowserDependencyFactoryImpl::CreateWebContents() { |
| - return content::WebContents::Create( |
| + content::WebContents* web_contents = content::WebContents::Create( |
| content::WebContents::CreateParams(GetBrowserContext())); |
| + WebContentsSource::CreateForWebContentsAndLocation(web_contents, FROM_HERE); |
|
Mike Wittman
2015/11/11 17:15:28
Web contents modal dialogs aren't supported on And
hcarmona
2015/11/11 19:57:57
Done.
|
| + return web_contents; |
| } |
| } // namespace android_webview |