| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index b1c90e3d5d3a890586c421ae344b5470c15df15d..731c4ee24953b836c6f82360b5d2e7dea5483262 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -69,6 +69,7 @@
|
| #include "core/fetch/ResourceFetcher.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/EventHandlerRegistry.h"
|
| +#include "core/frame/FrameConsole.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Settings.h"
|
| @@ -1426,13 +1427,11 @@ String Internals::dumpRefCountedInstanceCounts() const
|
|
|
| Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const
|
| {
|
| - InstrumentingAgents* instrumentingAgents = instrumentationForPage(document->page());
|
| - if (!instrumentingAgents)
|
| - return Vector<String>();
|
| - InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorConsoleAgent();
|
| - if (!consoleAgent)
|
| + LocalFrame* frame = document->frame();
|
| + if (!frame)
|
| return Vector<String>();
|
| - Vector<unsigned> counts = consoleAgent->consoleMessageArgumentCounts();
|
| +
|
| + Vector<unsigned> counts = frame->console().messageStorage()->argumentCounts();
|
| Vector<String> result(counts.size());
|
| for (size_t i = 0; i < counts.size(); i++)
|
| result[i] = String::number(counts[i]);
|
|
|