Index: chrome/common/chrome_paths.cc |
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc |
index 297b9635ca39f677a02757c60f990fe1724403f3..e842cbc8597b4b3fa45a040eeddc86321970e85d 100644 |
--- a/chrome/common/chrome_paths.cc |
+++ b/chrome/common/chrome_paths.cc |
@@ -49,8 +49,8 @@ bool GetDefaultUserDataDirectory(std::wstring* result) { |
bool GetGearsPluginPathFromCommandLine(std::wstring *path) { |
#ifndef NDEBUG |
// for debugging, support a cmd line based override |
- CommandLine command_line; |
- *path = command_line.GetSwitchValue(switches::kGearsPluginPathOverride); |
+ *path = CommandLine::ForCurrentProcess()->GetSwitchValue( |
+ switches::kGearsPluginPathOverride); |
return !path->empty(); |
#else |
return false; |