From bb97536b768ac68fcbc4605c35461a798ef6e5ff Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 21 Jan 2009 01:00:22 +0000 Subject: Make CommandLine into a normal object, with some statics for getting at the current process's command line. One explicit goal of this change is to *not* deal with the string/wstring issues at the API on POSIX; the functions are the same as before, which means they remain as broken as before. (I did try to fix the internals, though, so migrating the callers is now possible by adding platform-appropriate hooks.) Review URL: http://codereview.chromium.org/18248 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8347 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/activex_shim/activex_shared.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webkit/activex_shim') diff --git a/webkit/activex_shim/activex_shared.cc b/webkit/activex_shim/activex_shared.cc index 0b12b57..ee146b9 100644 --- a/webkit/activex_shim/activex_shared.cc +++ b/webkit/activex_shim/activex_shared.cc @@ -88,8 +88,8 @@ static bool IsAllowAllActiveX() { static bool parsed_flag = false; static bool allow_all_activex = false; if (!parsed_flag) { - CommandLine command_line; - allow_all_activex = command_line.HasSwitch(kAllowAllActiveX); + allow_all_activex = + CommandLine::ForCurrentProcess()->HasSwitch(kAllowAllActiveX); parsed_flag = true; } return allow_all_activex; -- cgit v1.1