Index: chrome/installer/util/master_preferences.cc |
diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc |
index 053dc45d1f733878cb25d33c648f15553df09c65..43483c048d058303b6327ffbbd540c4771e724d9 100644 |
--- a/chrome/installer/util/master_preferences.cc |
+++ b/chrome/installer/util/master_preferences.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/installer/util/master_preferences.h" |
#include "base/file_util.h" |
+#include "base/string_util.h" |
tony
2010/08/06 00:09:38
Nit: sort
|
#include "base/logging.h" |
#include "base/path_service.h" |
#include "chrome/common/json_value_serializer.h" |
@@ -106,8 +107,8 @@ DictionaryValue* GetInstallPreferences(const CommandLine& cmd_line) { |
DictionaryValue* prefs = NULL; |
#if defined(OS_WIN) |
if (cmd_line.HasSwitch(installer_util::switches::kInstallerData)) { |
- FilePath prefs_path( |
- cmd_line.GetSwitchValue(installer_util::switches::kInstallerData)); |
+ FilePath prefs_path = cmd_line.GetSwitchValuePath( |
+ installer_util::switches::kInstallerData); |
prefs = installer_util::ParseDistributionPreferences(prefs_path); |
} |