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

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

Issue 644073003: Fixing crash with sig: blink::FrameConsole::addMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/frame/FrameConsole.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index e19d9760cc677c4d6dc3ccc709a031ca86b1d7e4..feeb046f2ea85d4c40a528da15085546cd24ec26 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1456,11 +1456,11 @@ String Internals::dumpRefCountedInstanceCounts() const
Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const
{
- LocalFrame* frame = document->frame();
- if (!frame)
+ FrameHost* host = document->frameHost();
+ if (!host)
return Vector<String>();
- Vector<unsigned> counts = frame->console().messageStorage()->argumentCounts();
+ Vector<unsigned> counts = host->consoleMessageStorage().argumentCounts();
Vector<String> result(counts.size());
for (size_t i = 0; i < counts.size(); i++)
result[i] = String::number(counts[i]);
« no previous file with comments | « Source/core/frame/FrameConsole.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698