| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 20d5a455ef40219487ada936fd63ceec9fa900e9..38cf4f936f2b9c22e5a63f2fffb8eeb3304cba11 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -94,10 +94,9 @@
|
| #include "core/html/shadow/ShadowElementNames.h"
|
| #include "core/html/shadow/TextControlInnerElements.h"
|
| #include "core/input/EventHandler.h"
|
| -#include "core/inspector/ConsoleMessageStorage.h"
|
| -#include "core/inspector/InspectorConsoleAgent.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/InstanceCounters.h"
|
| +#include "core/inspector/MainThreadDebugger.h"
|
| #include "core/layout/LayoutMenuList.h"
|
| #include "core/layout/LayoutObject.h"
|
| #include "core/layout/LayoutTreeAsText.h"
|
| @@ -1590,11 +1589,11 @@ String Internals::dumpRefCountedInstanceCounts() const
|
|
|
| Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const
|
| {
|
| - FrameHost* host = document->frameHost();
|
| - if (!host)
|
| + if (!document->frame())
|
| return Vector<String>();
|
|
|
| - Vector<unsigned> counts = host->consoleMessageStorage().argumentCounts();
|
| + MainThreadDebugger* debugger = MainThreadDebugger::instance();
|
| + protocol::Vector<unsigned> counts = debugger->debugger()->consoleMessageArgumentCounts(debugger->contextGroupId(document->frame()));
|
| Vector<String> result(counts.size());
|
| for (size_t i = 0; i < counts.size(); i++)
|
| result[i] = String::number(counts[i]);
|
|
|