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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1736663003: Eliminate Quit() from Shell, and roll Shell & Connector together. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@14cf
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/browser/frame_host/frame_mojo_shell.cc ('k') | content/renderer/render_frame_impl.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 base::Bind(&PermissionServiceContext::CreateService, 1828 base::Bind(&PermissionServiceContext::CreateService,
1829 base::Unretained(permission_service_context_.get()))); 1829 base::Unretained(permission_service_context_.get())));
1830 1830
1831 GetServiceRegistry()->AddService<presentation::PresentationService>( 1831 GetServiceRegistry()->AddService<presentation::PresentationService>(
1832 base::Bind(&PresentationServiceImpl::CreateMojoService, 1832 base::Bind(&PresentationServiceImpl::CreateMojoService,
1833 base::Unretained(this))); 1833 base::Unretained(this)));
1834 1834
1835 if (!frame_mojo_shell_) 1835 if (!frame_mojo_shell_)
1836 frame_mojo_shell_.reset(new FrameMojoShell(this)); 1836 frame_mojo_shell_.reset(new FrameMojoShell(this));
1837 1837
1838 GetServiceRegistry()->AddService<mojo::shell::mojom::Shell>(base::Bind( 1838 GetServiceRegistry()->AddService<mojo::shell::mojom::Connector>(base::Bind(
1839 &FrameMojoShell::BindRequest, base::Unretained(frame_mojo_shell_.get()))); 1839 &FrameMojoShell::BindRequest, base::Unretained(frame_mojo_shell_.get())));
1840 1840
1841 #if defined(ENABLE_WEBVR) 1841 #if defined(ENABLE_WEBVR)
1842 const base::CommandLine& browser_command_line = 1842 const base::CommandLine& browser_command_line =
1843 *base::CommandLine::ForCurrentProcess(); 1843 *base::CommandLine::ForCurrentProcess();
1844 1844
1845 if (browser_command_line.HasSwitch(switches::kEnableWebVR)) { 1845 if (browser_command_line.HasSwitch(switches::kEnableWebVR)) {
1846 GetServiceRegistry()->AddService<VRService>( 1846 GetServiceRegistry()->AddService<VRService>(
1847 base::Bind(&VRDeviceManager::BindRequest)); 1847 base::Bind(&VRDeviceManager::BindRequest));
1848 } 1848 }
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 *dst = src; 2599 *dst = src;
2600 2600
2601 if (src.routing_id != -1) 2601 if (src.routing_id != -1)
2602 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2602 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2603 2603
2604 if (src.parent_routing_id != -1) 2604 if (src.parent_routing_id != -1)
2605 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2605 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2606 } 2606 }
2607 2607
2608 } // namespace content 2608 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698