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

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

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 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
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/plugin_process_host.h" 7 #include "chrome/browser/plugin_process_host.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 cmd_line.AppendSwitchWithValue(switches::kProcessType, 364 cmd_line.AppendSwitchWithValue(switches::kProcessType,
365 switches::kPluginProcess); 365 switches::kPluginProcess);
366 cmd_line.AppendSwitchWithValue(switches::kPluginPath, 366 cmd_line.AppendSwitchWithValue(switches::kPluginPath,
367 info.path.ToWStringHack()); 367 info.path.ToWStringHack());
368 368
369 if (logging::DialogsAreSuppressed()) 369 if (logging::DialogsAreSuppressed())
370 cmd_line.AppendSwitch(switches::kNoErrorDialogs); 370 cmd_line.AppendSwitch(switches::kNoErrorDialogs);
371 371
372 // Propagate the following switches to the plugin command line (along with 372 // Propagate the following switches to the plugin command line (along with
373 // any associated values) if present in the browser command line 373 // any associated values) if present in the browser command line
374 static const wchar_t* const switch_names[] = { 374 static const char* const switch_names[] = {
375 switches::kPluginStartupDialog, 375 switches::kPluginStartupDialog,
376 switches::kNoSandbox, 376 switches::kNoSandbox,
377 switches::kSafePlugins, 377 switches::kSafePlugins,
378 switches::kTestSandbox, 378 switches::kTestSandbox,
379 switches::kUserAgent, 379 switches::kUserAgent,
380 switches::kDisableBreakpad, 380 switches::kDisableBreakpad,
381 switches::kFullMemoryCrashReport, 381 switches::kFullMemoryCrashReport,
382 switches::kEnableLogging, 382 switches::kEnableLogging,
383 switches::kDisableLogging, 383 switches::kDisableLogging,
384 switches::kLoggingLevel, 384 switches::kLoggingLevel,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 DCHECK(MessageLoop::current() == 660 DCHECK(MessageLoop::current() ==
661 ChromeThread::GetMessageLoop(ChromeThread::IO)); 661 ChromeThread::GetMessageLoop(ChromeThread::IO));
662 662
663 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); 663 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path);
664 if (chrome_plugin) { 664 if (chrome_plugin) {
665 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); 665 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
666 uint32 data_len = static_cast<uint32>(data.size()); 666 uint32 data_len = static_cast<uint32>(data.size());
667 chrome_plugin->functions().on_message(data_ptr, data_len); 667 chrome_plugin->functions().on_message(data_ptr, data_len);
668 } 668 }
669 } 669 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/printing/printing_layout_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698