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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2447143003: Use kRenderClientId command line flag when starting a render process (Closed)
Patch Set: Removed SetFrameSinkID IPC; Using base::StringToInt() instead of std::stoi() Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 #if defined(OS_WIN) 1588 #if defined(OS_WIN)
1589 command_line->AppendSwitchASCII( 1589 command_line->AppendSwitchASCII(
1590 switches::kDeviceScaleFactor, 1590 switches::kDeviceScaleFactor,
1591 base::DoubleToString(display::win::GetDPIScale())); 1591 base::DoubleToString(display::win::GetDPIScale()));
1592 #endif 1592 #endif
1593 1593
1594 AppendCompositorCommandLineFlags(command_line); 1594 AppendCompositorCommandLineFlags(command_line);
1595 1595
1596 command_line->AppendSwitchASCII(switches::kServiceRequestChannelToken, 1596 command_line->AppendSwitchASCII(switches::kServiceRequestChannelToken,
1597 child_connection_->service_token()); 1597 child_connection_->service_token());
1598 command_line->AppendSwitchASCII(switches::kRendererClientId,
1599 std::to_string(GetID()));
1598 } 1600 }
1599 1601
1600 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( 1602 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
1601 const base::CommandLine& browser_cmd, 1603 const base::CommandLine& browser_cmd,
1602 base::CommandLine* renderer_cmd) { 1604 base::CommandLine* renderer_cmd) {
1603 // Propagate the following switches to the renderer command line (along 1605 // Propagate the following switches to the renderer command line (along
1604 // with any associated values) if present in the browser command line. 1606 // with any associated values) if present in the browser command line.
1605 static const char* const kSwitchNames[] = { 1607 static const char* const kSwitchNames[] = {
1606 switches::kAgcStartupMinVolume, 1608 switches::kAgcStartupMinVolume,
1607 switches::kAecRefinedAdaptiveFilter, 1609 switches::kAecRefinedAdaptiveFilter,
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 bad_message::ReceivedBadMessage(render_process_id, 2986 bad_message::ReceivedBadMessage(render_process_id,
2985 bad_message::RPH_MOJO_PROCESS_ERROR); 2987 bad_message::RPH_MOJO_PROCESS_ERROR);
2986 } 2988 }
2987 2989
2988 void RenderProcessHostImpl::CreateURLLoaderFactory( 2990 void RenderProcessHostImpl::CreateURLLoaderFactory(
2989 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { 2991 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) {
2990 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); 2992 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request));
2991 } 2993 }
2992 2994
2993 } // namespace content 2995 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698