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

Unified Diff: chrome/renderer/chrome_render_frame_observer.cc

Issue 1396293003: Use RenderFrameHost::AddMessageToConsole for app banner debug logging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « chrome/renderer/chrome_render_frame_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_frame_observer.cc
diff --git a/chrome/renderer/chrome_render_frame_observer.cc b/chrome/renderer/chrome_render_frame_observer.cc
index 6f71da98b5d9fbd79ad933b15c6c5ddf2c62cd8c..3f364567922d39cc85b45681303cb270a2718fa4 100644
--- a/chrome/renderer/chrome_render_frame_observer.cc
+++ b/chrome/renderer/chrome_render_frame_observer.cc
@@ -215,8 +215,6 @@ bool ChromeRenderFrameObserver::OnMessageReceived(const IPC::Message& message) {
OnPrintNodeUnderContextMenu)
IPC_MESSAGE_HANDLER(ChromeViewMsg_AppBannerPromptRequest,
OnAppBannerPromptRequest)
- IPC_MESSAGE_HANDLER(ChromeViewMsg_AppBannerDebugMessageRequest,
- OnAppBannerDebugMessageRequest)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -354,12 +352,6 @@ void ChromeRenderFrameObserver::OnAppBannerPromptRequest(
routing_id(), request_id, reply, referrer));
}
-void ChromeRenderFrameObserver::OnAppBannerDebugMessageRequest(
- const std::string& message) {
- render_frame()->GetWebFrame()->addMessageToConsole(blink::WebConsoleMessage(
- blink::WebConsoleMessage::LevelDebug, base::UTF8ToUTF16(message)));
-}
-
void ChromeRenderFrameObserver::DidFinishLoad() {
WebLocalFrame* frame = render_frame()->GetWebFrame();
// Don't do anything for subframes.
« no previous file with comments | « chrome/renderer/chrome_render_frame_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698