Index: content/browser/renderer_host/mock_render_process_host.cc |
diff --git a/content/browser/renderer_host/mock_render_process_host.cc b/content/browser/renderer_host/mock_render_process_host.cc |
index 2eafb5f26f1af371f81c4df9ececf08c3347ef6c..60cd0b796e8363d8a32883dbb1d6953fa137b522 100644 |
--- a/content/browser/renderer_host/mock_render_process_host.cc |
+++ b/content/browser/renderer_host/mock_render_process_host.cc |
@@ -118,6 +118,9 @@ TransportDIB* MockRenderProcessHost::GetTransportDIB(TransportDIB::Id dib_id) { |
// On Mac, TransportDIBs are always created in the browser, so we cannot map |
// one from a dib_id. |
transport_dib_ = TransportDIB::Create(100 * 100 * 4, 0); |
+#elif defined(OS_ANDROID) |
+ // On Android, Handles and Ids are the same underlying type. |
+ transport_dib_ = TransportDIB::Map(dib_id); |
#elif defined(OS_POSIX) |
transport_dib_ = TransportDIB::Map(dib_id.shmkey); |
#endif |