summaryrefslogtreecommitdiffstats
path: root/cc/trees
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-27 18:57:01 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-27 18:57:01 +0000
commita5a780c04df5f337fbb837e2f33e466d76c2d190 (patch)
tree3847bf4565ea41b0230bf7e2e8ea06376aa5d63b /cc/trees
parentcd89997a5d9f8088355bb0e2f39059ac763c8bc2 (diff)
downloadchromium_src-a5a780c04df5f337fbb837e2f33e466d76c2d190.zip
chromium_src-a5a780c04df5f337fbb837e2f33e466d76c2d190.tar.gz
chromium_src-a5a780c04df5f337fbb837e2f33e466d76c2d190.tar.bz2
cc: Remove the round-about Callback for creating a TestContextProvider.
I did this already in the production ContextProviders but missed our TestContextProvider. Passing a Callback just to have the Callback run synchronously and use the return value is silly. We can just pass the return value directly. R=jamesr BUG= Review URL: https://codereview.chromium.org/23464093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225746 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees')
-rw-r--r--cc/trees/layer_tree_host_unittest_context.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index 413882f..cea0e43 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -139,9 +139,7 @@ class LayerTreeHostContextTest : public LayerTreeTest {
if (!offscreen_contexts_.get() ||
offscreen_contexts_->DestroyedOnMainThread()) {
offscreen_contexts_ =
- TestContextProvider::Create(
- base::Bind(&LayerTreeHostContextTest::CreateOffscreenContext3d,
- base::Unretained(this)));
+ TestContextProvider::Create(CreateOffscreenContext3d());
}
return offscreen_contexts_;
}