| Index: Source/core/testing/Internals.cpp | 
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp | 
| index e2179351d80974b8f6042360a135805693161fe0..5a6d3af90167bf42b33121fe1f0f88959cb1cee1 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" | 
| @@ -1416,13 +1417,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]); | 
|  |