Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_mus.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_view_mus.cc b/content/browser/renderer_host/render_widget_host_view_mus.cc |
| index 08e0058c355185bd42011ae0efded45d41c93d59..5fa1e3ad5a68ba78267f2f47b1e01969ecb6a7da 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_mus.cc |
| +++ b/content/browser/renderer_host/render_widget_host_view_mus.cc |
| @@ -4,6 +4,8 @@ |
| #include "content/browser/renderer_host/render_widget_host_view_mus.h" |
| +#include "base/debug/stack_trace.h" |
| + |
| #include "components/mus/public/cpp/window.h" |
| #include "components/mus/public/cpp/window_tree_connection.h" |
| #include "content/browser/mojo/mojo_shell_client_host.h" |
| @@ -19,11 +21,17 @@ struct WebScreenInfo; |
| namespace content { |
| +void DoNothing(bool result) { |
| + fprintf(stderr, "EEE %s %d\n", __func__, __LINE__); |
| +} |
| + |
| RenderWidgetHostViewMus::RenderWidgetHostViewMus( |
| mus::Window* parent_window, |
| RenderWidgetHostImpl* host, |
| base::WeakPtr<RenderWidgetHostViewBase> platform_view) |
| : host_(host), platform_view_(platform_view) { |
| + // base::debug::StackTrace().Print(); |
| + // |
| DCHECK(parent_window); |
| mus::Window* window = parent_window->connection()->NewWindow(); |
| window->SetVisible(true); |
| @@ -40,7 +48,11 @@ RenderWidgetHostViewMus::RenderWidgetHostViewMus( |
| mus::mojom::WindowTreeClientPtr window_tree_client; |
| factory->CreateWindowTreeClientForRenderWidget( |
| - host_->GetRoutingID(), mojo::GetProxy(&window_tree_client)); |
| + host_->GetRoutingID(), mojo::GetProxy(&window_tree_client), |
| + DoNothing); |
|
Peng
2015/11/26 22:13:04
Looks like in the browser process, this function i
Fady Samuel
2015/11/27 00:26:21
Mojo IPCs and Chrome IPCs can be issued out of ord
|
| + fprintf(stderr, "EEE %s %d\n", __func__, __LINE__); |
| + factory.WaitForIncomingResponse(); |
|
Peng
2015/11/27 15:08:03
I think WaitForImcomingResponse() should block cur
|
| + fprintf(stderr, "EEE %s %d\n", __func__, __LINE__); |
| window_->window()->Embed(window_tree_client.Pass()); |
| } |