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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: all tests pass Created 4 years, 6 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
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]);

Powered by Google App Engine
This is Rietveld 408576698