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

Unified Diff: Source/core/page/DOMSelection.cpp

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 years, 4 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: Source/core/page/DOMSelection.cpp
diff --git a/Source/core/page/DOMSelection.cpp b/Source/core/page/DOMSelection.cpp
index 1f042da605830ce0cbbf972fcfa962b2717481f3..49ead12e1e8b65336ce055467f6fc1de56a7d4ce 100644
--- a/Source/core/page/DOMSelection.cpp
+++ b/Source/core/page/DOMSelection.cpp
@@ -43,6 +43,7 @@
#include "core/editing/TextIterator.h"
#include "core/editing/htmlediting.h"
#include "core/frame/LocalFrame.h"
+#include "core/inspector/ConsoleMessage.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -562,7 +563,7 @@ bool DOMSelection::isValidForPosition(Node* node) const
void DOMSelection::addConsoleError(const String& message)
{
if (m_treeScope)
- m_treeScope->document().addConsoleMessage(JSMessageSource, ErrorMessageLevel, message);
+ m_treeScope->document().addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, message));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698