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

Unified Diff: chrome/common/chrome_plugin_util.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/common/chrome_plugin_util.cc
diff --git a/chrome/common/chrome_plugin_util.cc b/chrome/common/chrome_plugin_util.cc
index 33b83453a521433c23b80154e1194c86c518d902..649975f6e113c3b7795f26bdb84408ced62bace2 100644
--- a/chrome/common/chrome_plugin_util.cc
+++ b/chrome/common/chrome_plugin_util.cc
@@ -141,11 +141,11 @@ CPError CPB_GetCommandLineArgumentsCommon(const char* url,
}
}
-#if defined (OS_CHROMEOS)
- std::wstring profile = cmd.GetSwitchValue(switches::kLoginProfile);
+#if defined(OS_CHROMEOS)
+ FilePath profile = cmd.GetSwitchValuePath(switches::kLoginProfile);
if (!profile.empty()) {
arguments_w += std::wstring(L"--") + ASCIIToWide(switches::kLoginProfile) +
- L"=\"" + profile + L"\" ";
+ L"=\"" + profile.ToWStringHack() + L"\" ";
}
#endif

Powered by Google App Engine
This is Rietveld 408576698