Index: base/trace_event/trace_event_memory_unittest.cc |
diff --git a/base/trace_event/trace_event_memory_unittest.cc b/base/trace_event/trace_event_memory_unittest.cc |
index 781a0544c457c7f6049a822ced65e9b091c82123..47327335ebac06cdc0b4abff566f51b817aea233 100644 |
--- a/base/trace_event/trace_event_memory_unittest.cc |
+++ b/base/trace_event/trace_event_memory_unittest.cc |
@@ -7,6 +7,7 @@ |
#include <sstream> |
#include <string> |
+#include "base/message_loop/message_loop.h" |
#include "base/trace_event/trace_event_impl.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -39,9 +40,12 @@ |
EXPECT_EQ(0u, TraceLog::GetInstance()->GetObserverCountForTest()); |
// Creating a controller adds it to the TraceLog observer list. |
- scoped_ptr<TraceMemoryController> controller(new TraceMemoryController( |
- message_loop.task_runner(), ::HeapProfilerWithPseudoStackStart, |
- ::HeapProfilerStop, ::GetHeapProfile)); |
+ scoped_ptr<TraceMemoryController> controller( |
+ new TraceMemoryController( |
+ message_loop.message_loop_proxy(), |
+ ::HeapProfilerWithPseudoStackStart, |
+ ::HeapProfilerStop, |
+ ::GetHeapProfile)); |
EXPECT_EQ(1u, TraceLog::GetInstance()->GetObserverCountForTest()); |
EXPECT_TRUE( |
TraceLog::GetInstance()->HasEnabledStateObserver(controller.get())); |