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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 2763493002: gpu: Use mojom API for recording log messages to the host. (Closed)
Patch Set: add comment Created 3 years, 9 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: content/browser/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index 01b2b5cd8102d2ca404297a7825194683e6bc31b..1a910cbc1129d1ad9daaa60600d2136bbf2c05f7 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -135,7 +135,8 @@ bool GpuProcessHostUIShim::OnMessageReceived(const IPC::Message& message) {
if (message.routing_id() != MSG_ROUTING_CONTROL)
return false;
- return OnControlMessageReceived(message);
+ NOTREACHED() << "Invalid message with type = " << message.type();
+ return true;
}
GpuProcessHostUIShim::~GpuProcessHostUIShim() {
@@ -143,26 +144,6 @@ GpuProcessHostUIShim::~GpuProcessHostUIShim() {
g_hosts_by_id.Pointer()->Remove(host_id_);
}
-bool GpuProcessHostUIShim::OnControlMessageReceived(
- const IPC::Message& message) {
- DCHECK(CalledOnValidThread());
-
- IPC_BEGIN_MESSAGE_MAP(GpuProcessHostUIShim, message)
- IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage, OnLogMessage)
- IPC_MESSAGE_UNHANDLED_ERROR()
- IPC_END_MESSAGE_MAP()
-
- return true;
-}
-
-void GpuProcessHostUIShim::OnLogMessage(
- int level,
- const std::string& header,
- const std::string& message) {
- GpuDataManagerImpl::GetInstance()->AddLogMessage(
- level, header, message);
-}
-
#if defined(OS_ANDROID)
// static
void GpuProcessHostUIShim::RegisterUIThreadMojoInterfaces(

Powered by Google App Engine
This is Rietveld 408576698