| Index: Source/core/inspector/PageDebuggerAgent.cpp
|
| diff --git a/Source/core/inspector/PageDebuggerAgent.cpp b/Source/core/inspector/PageDebuggerAgent.cpp
|
| index ad789497e4eee457b671a75748a67451f81dfcab..69f922878bdcf18ca5fa52bdff7adb50ad9177bc 100644
|
| --- a/Source/core/inspector/PageDebuggerAgent.cpp
|
| +++ b/Source/core/inspector/PageDebuggerAgent.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "core/inspector/InspectorOverlay.h"
|
| #include "core/inspector/InspectorPageAgent.h"
|
| #include "core/inspector/InstrumentingAgents.h"
|
| +#include "core/page/Page.h"
|
| #include "core/page/PageConsole.h"
|
|
|
| namespace WebCore {
|
| @@ -93,6 +94,11 @@ void PageDebuggerAgent::unmuteConsole()
|
| PageConsole::unmute();
|
| }
|
|
|
| +void PageDebuggerAgent::addConsoleMessage(MessageSource source, MessageLevel level, const String& message, const String& sourceURL)
|
| +{
|
| + m_pageAgent->page()->console()->addMessage(source, level, message, sourceURL, 0);
|
| +}
|
| +
|
| InjectedScript PageDebuggerAgent::injectedScriptForEval(ErrorString* errorString, const int* executionContextId)
|
| {
|
| if (!executionContextId) {
|
|
|