Chromium Code Reviews| 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 9faff29cc1d9fd8146e0e7018a8816800c5b7f8c..db6ecc942968cef9824bc6a1119237b2048798f2 100644 |
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
| @@ -432,11 +432,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client, |
| m_displayMode(WebDisplayModeBrowser), |
| m_elasticOverscroll(FloatSize()), |
| m_mutator(nullptr), |
| - m_scheduler(wrapUnique(Platform::current() |
| - ->currentThread() |
| - ->scheduler() |
| - ->createWebViewScheduler(this) |
| - .release())), |
| + m_scheduler(nullptr), |
|
alex clarke (OOO till 29th)
2016/11/02 17:53:49
I think we can omit this (odd the line above exist
altimin
2016/11/02 21:10:02
Done.
|
| m_lastFrameTimeMonotonic(0), |
| m_overrideCompositorVisibility(false) { |
| Page::PageClients pageClients; |
| @@ -461,12 +457,16 @@ WebViewImpl::WebViewImpl(WebViewClient* client, |
| StorageNamespaceController::provideStorageNamespaceTo(*m_page, |
| &m_storageClientImpl); |
| + m_devToolsEmulator = DevToolsEmulator::create(this); |
| + |
| + m_scheduler = |
| + Platform::current()->currentThread()->scheduler()->createWebViewScheduler( |
| + this, settingsImpl()); |
| + |
| setVisibilityState(visibilityState, true); |
| initializeLayerTreeView(); |
| - m_devToolsEmulator = DevToolsEmulator::create(this); |
| - |
| allInstances().add(this); |
| m_pageImportanceSignals.setObserver(client); |