OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |