diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 21:15:34 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 21:15:34 +0000 |
commit | dee7c0509d0e98d1210725aad2ce6e5153780592 (patch) | |
tree | 2408eb938674cde03bffb69350171980222d1584 /chrome/renderer | |
parent | f756abf74be7ce47d482f9760eacb608c9f0e121 (diff) | |
download | chromium_src-dee7c0509d0e98d1210725aad2ce6e5153780592.zip chromium_src-dee7c0509d0e98d1210725aad2ce6e5153780592.tar.gz chromium_src-dee7c0509d0e98d1210725aad2ce6e5153780592.tar.bz2 |
Remove GetSwitchValue() from chrome/* where easy.
Review URL: http://codereview.chromium.org/3057033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54966 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/devtools_client.cc | 2 | ||||
-rw-r--r-- | chrome/renderer/renderer_main.cc | 4 | ||||
-rw-r--r-- | chrome/renderer/renderer_main_platform_delegate_win.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/devtools_client.cc b/chrome/renderer/devtools_client.cc index 81b6f73..3e3a47e 100644 --- a/chrome/renderer/devtools_client.cc +++ b/chrome/renderer/devtools_client.cc @@ -24,7 +24,7 @@ DevToolsClient::DevToolsClient(RenderView* view) WebDevToolsFrontend::create( view->webview(), this, - WideToUTF16Hack(command_line.GetSwitchValue(switches::kLang)))); + ASCIIToUTF16(command_line.GetSwitchValueASCII(switches::kLang)))); } DevToolsClient::~DevToolsClient() { diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc index daf873a..5339708 100644 --- a/chrome/renderer/renderer_main.cc +++ b/chrome/renderer/renderer_main.cc @@ -255,8 +255,8 @@ int RendererMain(const MainFunctionParams& parameters) { FieldTrialList field_trial; // Ensure any field trials in browser are reflected into renderer. if (parsed_command_line.HasSwitch(switches::kForceFieldTestNameAndValue)) { - std::string persistent(WideToASCII(parsed_command_line.GetSwitchValue( - switches::kForceFieldTestNameAndValue))); + std::string persistent = parsed_command_line.GetSwitchValueASCII( + switches::kForceFieldTestNameAndValue); bool ret = field_trial.StringAugmentsState(persistent); DCHECK(ret); } diff --git a/chrome/renderer/renderer_main_platform_delegate_win.cc b/chrome/renderer/renderer_main_platform_delegate_win.cc index d5cca59..104eba5 100644 --- a/chrome/renderer/renderer_main_platform_delegate_win.cc +++ b/chrome/renderer/renderer_main_platform_delegate_win.cc @@ -102,7 +102,7 @@ bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) { if (target_services && !no_sandbox) { std::wstring test_dll_name = - command_line.GetSwitchValue(switches::kTestSandbox); + command_line.GetSwitchValueNative(switches::kTestSandbox); if (!test_dll_name.empty()) { sandbox_test_module_ = LoadLibrary(test_dll_name.c_str()); DCHECK(sandbox_test_module_); |