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

Unified Diff: chrome/common/chrome_paths.cc

Issue 296004: Use GetSwitchValueASCII. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
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
===================================================================
--- chrome/common/chrome_paths.cc (revision 31117)
+++ chrome/common/chrome_paths.cc (working copy)
@@ -23,11 +23,10 @@
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