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

Unified Diff: chrome/common/chrome_paths.cc

Issue 373013: Use GetSwitchValueASCII. (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « chrome/common/child_thread.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index aa9ae8d0013c5aee733d07d2b1f372dd1c70b89c..43827937935dd55659a6cf090871a72c4a378d37 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -23,11 +23,10 @@ namespace chrome {
bool GetGearsPluginPathFromCommandLine(FilePath* path) {
#ifndef NDEBUG
// for debugging, support a cmd line based override
- std::wstring plugin_path = CommandLine::ForCurrentProcess()->GetSwitchValue(
- switches::kGearsPluginPathOverride);
- // TODO(tc): After GetSwitchNativeValue lands, we don't need to use
- // FromWStringHack.
- *path = FilePath::FromWStringHack(plugin_path);
+ FilePath plugin_path =
+ CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ switches::kGearsPluginPathOverride);
+ *path = plugin_path;
return !plugin_path.empty();
#else
return false;
« no previous file with comments | « chrome/common/child_thread.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698