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

Unified Diff: chrome/installer/util/master_preferences.cc

Issue 3057033: Remove GetSwitchValue() from chrome/* where easy. (Closed)
Patch Set: finally Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698