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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1738663002: Hook embedded shell up to MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « content/public/common/url_constants.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 ChildThreadImpl::discardable_shared_memory_manager()); 845 ChildThreadImpl::discardable_shared_memory_manager());
846 846
847 service_registry()->AddService<RenderFrameSetup>( 847 service_registry()->AddService<RenderFrameSetup>(
848 base::Bind(CreateRenderFrameSetup)); 848 base::Bind(CreateRenderFrameSetup));
849 service_registry()->AddService<EmbeddedWorkerSetup>( 849 service_registry()->AddService<EmbeddedWorkerSetup>(
850 base::Bind(CreateEmbeddedWorkerSetup)); 850 base::Bind(CreateEmbeddedWorkerSetup));
851 851
852 #if defined(MOJO_SHELL_CLIENT) 852 #if defined(MOJO_SHELL_CLIENT)
853 // We may not have a MojoShellConnection object in tests that directly 853 // We may not have a MojoShellConnection object in tests that directly
854 // instantiate a RenderThreadImpl. 854 // instantiate a RenderThreadImpl.
855 if (MojoShellConnection::Get()) 855 if (MojoShellConnection::Get() &&
856 base::CommandLine::ForCurrentProcess()->HasSwitch(
857 switches::kUseMusInRenderer))
856 CreateRenderWidgetWindowTreeClientFactory(); 858 CreateRenderWidgetWindowTreeClientFactory();
857 #endif 859 #endif
858 860
859 service_registry()->ConnectToRemoteService( 861 service_registry()->ConnectToRemoteService(
860 mojo::GetProxy(&storage_partition_service_)); 862 mojo::GetProxy(&storage_partition_service_));
861 } 863 }
862 864
863 RenderThreadImpl::~RenderThreadImpl() { 865 RenderThreadImpl::~RenderThreadImpl() {
864 } 866 }
865 867
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 } 2178 }
2177 2179
2178 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 2180 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
2179 size_t erased = 2181 size_t erased =
2180 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 2182 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
2181 routing_id_); 2183 routing_id_);
2182 DCHECK_EQ(1u, erased); 2184 DCHECK_EQ(1u, erased);
2183 } 2185 }
2184 2186
2185 } // namespace content 2187 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/url_constants.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698