Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
index 56f8733718e715c25e79d8523685b21fabca9b65..acd47226ea02825575c0ac8e74abc9a7fc7f77cd 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -54,6 +54,7 @@ |
#include "core/html/HTMLFrameElementBase.h" |
#include "core/html/HTMLPlugInElement.h" |
#include "core/input/EventHandler.h" |
+#include "core/inspector/ConsoleMessage.h" |
#include "core/inspector/InspectorInstrumentation.h" |
#include "core/layout/HitTestResult.h" |
#include "core/layout/LayoutView.h" |
@@ -474,6 +475,11 @@ void LocalFrame::printNavigationErrorMessage(const Frame& targetFrame, |
localDOMWindow()->printErrorMessage(message); |
} |
+void LocalFrame::printNavigationWarning(const String& message) { |
+ m_console->addMessage( |
+ ConsoleMessage::create(JSMessageSource, WarningMessageLevel, message)); |
+} |
+ |
WindowProxyManager* LocalFrame::getWindowProxyManager() const { |
return m_script->getWindowProxyManager(); |
} |