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

Unified Diff: webkit/tools/test_shell/layout_test_controller.h

Issue 8215002: base::Bind: Cleanup in test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 years, 2 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
« no previous file with comments | « webkit/appcache/appcache_host_unittest.cc ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/layout_test_controller.h
diff --git a/webkit/tools/test_shell/layout_test_controller.h b/webkit/tools/test_shell/layout_test_controller.h
index 3ada2646d9b69f04bd0b271b7c8d8a70ecb23e1f..5e82b0164e7902446ed7e5a61959afdea8b44b31 100644
--- a/webkit/tools/test_shell/layout_test_controller.h
+++ b/webkit/tools/test_shell/layout_test_controller.h
@@ -16,6 +16,7 @@
#include <queue>
+#include "base/memory/weak_ptr.h"
#include "base/timer.h"
#include "base/string16.h"
#include "webkit/glue/cpp_bound_class.h"
@@ -108,7 +109,7 @@ class LayoutTestController : public CppBoundClass {
// Used for test timeouts.
// TODO(ojan): Use base::OneShotTimer.
- ScopedRunnableMethodFactory<LayoutTestController> timeout_factory_;
+ base::WeakPtrFactory<LayoutTestController> weak_factory_;
// Non-owning pointer. The LayoutTestController is owned by the host.
static TestShell* shell_;
« no previous file with comments | « webkit/appcache/appcache_host_unittest.cc ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698