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

Side by Side Diff: chrome/browser/nacl_process_host.cc

Issue 296004: Use GetSwitchValueASCII. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/first_run_win.cc ('k') | chrome/browser/plugin_process_host.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/nacl_process_host.h" 7 #include "chrome/browser/nacl_process_host.h"
8 8
9 #if defined(OS_POSIX) 9 #if defined(OS_POSIX)
10 #include <fcntl.h> 10 #include <fcntl.h>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 switches::kLoggingLevel, 139 switches::kLoggingLevel,
140 switches::kEnableDCHECK, 140 switches::kEnableDCHECK,
141 switches::kSilentDumpOnDCHECK, 141 switches::kSilentDumpOnDCHECK,
142 switches::kMemoryProfiling, 142 switches::kMemoryProfiling,
143 }; 143 };
144 144
145 for (size_t i = 0; i < arraysize(switch_names); ++i) { 145 for (size_t i = 0; i < arraysize(switch_names); ++i) {
146 if (browser_command_line.HasSwitch(switch_names[i])) { 146 if (browser_command_line.HasSwitch(switch_names[i])) {
147 cmd_line.AppendSwitchWithValue( 147 cmd_line.AppendSwitchWithValue(
148 switch_names[i], 148 switch_names[i],
149 browser_command_line.GetSwitchValue(switch_names[i])); 149 browser_command_line.GetSwitchValueASCII(switch_names[i]));
150 } 150 }
151 } 151 }
152 152
153 cmd_line.AppendSwitchWithValue(switches::kProcessType, 153 cmd_line.AppendSwitchWithValue(switches::kProcessType,
154 switches::kNaClProcess); 154 switches::kNaClProcess);
155 155
156 cmd_line.AppendSwitchWithValue(switches::kProcessChannelID, 156 cmd_line.AppendSwitchWithValue(switches::kProcessChannelID,
157 ASCIIToWide(channel_id())); 157 ASCIIToWide(channel_id()));
158 158
159 base::ProcessHandle process = 0; 159 base::ProcessHandle process = 0;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 void NaClProcessHost::OnMessageReceived(const IPC::Message& msg) { 205 void NaClProcessHost::OnMessageReceived(const IPC::Message& msg) {
206 NOTREACHED() << "Invalid message with type = " << msg.type(); 206 NOTREACHED() << "Invalid message with type = " << msg.type();
207 } 207 }
208 208
209 URLRequestContext* NaClProcessHost::GetRequestContext( 209 URLRequestContext* NaClProcessHost::GetRequestContext(
210 uint32 request_id, 210 uint32 request_id,
211 const ViewHostMsg_Resource_Request& request_data) { 211 const ViewHostMsg_Resource_Request& request_data) {
212 return NULL; 212 return NULL;
213 } 213 }
OLDNEW
« no previous file with comments | « chrome/browser/first_run_win.cc ('k') | chrome/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698