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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2343623002: Add a warning whenever link preloads are not used (Closed)
Patch Set: Created 4 years, 3 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/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index a11afccdaa3ea0d81ba86bf8c8f0d604fc2c358e..8573e0d8e07e51349b9492646d79a2c7aac84ee0 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -654,10 +654,10 @@ void FrameFetchContext::sendImagePing(const KURL& url)
PingLoader::loadImage(frame(), url);
}
-void FrameFetchContext::addConsoleMessage(const String& message) const
+void FrameFetchContext::addConsoleMessage(const String& message, MessageLevel level) const
{
if (frame()->document())
- frame()->document()->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, message));
+ frame()->document()->addConsoleMessage(ConsoleMessage::create(JSMessageSource, level, message));
}
SecurityOrigin* FrameFetchContext::getSecurityOrigin() const

Powered by Google App Engine
This is Rietveld 408576698