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

Unified Diff: content/renderer/mus/renderer_window_tree_client.h

Issue 2676553003: mus: Fix creating the factory for window-tree-client in renderer. (Closed)
Patch Set: . Created 3 years, 11 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/renderer/mus/renderer_window_tree_client.h
diff --git a/content/renderer/mus/renderer_window_tree_client.h b/content/renderer/mus/renderer_window_tree_client.h
index 9ab9f3f3cc27102f487724e353c0e02f5e0ff8c0..b1615e557b21ae9916e903719a05409645d1a39d 100644
--- a/content/renderer/mus/renderer_window_tree_client.h
+++ b/content/renderer/mus/renderer_window_tree_client.h
@@ -30,9 +30,10 @@ namespace content {
class RendererWindowTreeClient : public ui::mojom::WindowTreeClient {
public:
// Creates a RendererWindowTreeClient instance for the RenderWidget instance
- // associated with |routing_id|. The instance self-destructs when the
- // connection to mus is lost, or when the window is closed.
- static void Create(int routing_id);
+ // associated with |routing_id| (if one doesn't already exist). The instance
+ // self-destructs when the connection to mus is lost, or when the window is
+ // closed.
+ static void CreateIfNecessary(int routing_id);
// Destroys the client instance, if one exists. Otherwise, does nothing.
static void Destroy(int routing_id);
« no previous file with comments | « content/renderer/mus/render_widget_window_tree_client_factory.cc ('k') | content/renderer/mus/renderer_window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698