Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index 2ab59d927d0c2a72d5f9f3872c3daa3afb1f3e29..64aa80dda8b707c9e16bb8e5097f208392562a8b 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -51,6 +51,7 @@ |
#include "core/events/UIEventWithKeyState.h" |
#include "core/events/WebInputEventConversion.h" |
#include "core/events/WheelEvent.h" |
+#include "core/exported/WebFactory.h" |
#include "core/exported/WebPluginContainerBase.h" |
#include "core/frame/BrowserControls.h" |
#include "core/frame/EventHandlerRegistry.h" |
@@ -339,7 +340,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client, |
WebPageVisibilityState visibility_state) |
: client_(client), |
spell_check_client_(nullptr), |
- chrome_client_impl_(ChromeClientImpl::Create(this)), |
+ chrome_client_(WebFactory::GetInstance().CreateChromeClient(this)), |
context_menu_client_impl_(this), |
editor_client_impl_(this), |
spell_checker_client_impl_(this), |
@@ -388,7 +389,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client, |
last_frame_time_monotonic_(0), |
override_compositor_visibility_(false) { |
Page::PageClients page_clients; |
- page_clients.chrome_client = chrome_client_impl_.Get(); |
+ page_clients.chrome_client = chrome_client_.Get(); |
page_clients.context_menu_client = &context_menu_client_impl_; |
page_clients.editor_client = &editor_client_impl_; |
page_clients.spell_checker_client = &spell_checker_client_impl_; |