Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Unified Diff: content/test/layouttest_support.cc

Issue 1245863003: Initialize CompositorDependencies in RenderWidget's constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 70ff8bdf6a8b749bc317ace24f469d52d2569460..7926f127d4b29757086ba63c39e8f8bd2ba95857 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -52,10 +52,11 @@ base::LazyInstance<
base::Callback<void(RenderView*, test_runner::WebTestProxyBase*)>>::Leaky
g_callback = LAZY_INSTANCE_INITIALIZER;
-RenderViewImpl* CreateWebTestProxy(const ViewMsg_New_Params& params) {
- typedef test_runner::WebTestProxy<RenderViewImpl, const ViewMsg_New_Params&>
- ProxyType;
- ProxyType* render_view_proxy = new ProxyType(params);
+RenderViewImpl* CreateWebTestProxy(CompositorDependencies* compositor_deps,
+ const ViewMsg_New_Params& params) {
+ typedef test_runner::WebTestProxy<RenderViewImpl, CompositorDependencies*,
+ const ViewMsg_New_Params&> ProxyType;
+ ProxyType* render_view_proxy = new ProxyType(compositor_deps, params);
if (g_callback == 0)
return render_view_proxy;
g_callback.Get().Run(render_view_proxy, render_view_proxy);
« components/test_runner/web_test_proxy.h ('K') | « content/renderer/render_widget_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698