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

Unified Diff: chrome/browser/profile.cc

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 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/browser/profile.cc
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 450864417704803142d869046a0e70fc63d8bf53..2894afab61b4b0fd2d9f7c2890631b46e30c430d 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -92,10 +92,10 @@ void GetCacheParameters(ContextType type, FilePath* cache_path,
*cache_path = FilePath::FromWStringHack(user_path);
}
- const wchar_t* arg = kNormalContext == type ? switches::kDiskCacheSize :
- switches::kMediaCacheSize;
+ const char* arg = kNormalContext == type ? switches::kDiskCacheSize :
+ switches::kMediaCacheSize;
std::string value =
- WideToASCII(CommandLine::ForCurrentProcess()->GetSwitchValue(arg));
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII(arg);
// By default we let the cache determine the right size.
*max_size = 0;
« no previous file with comments | « chrome/browser/process_singleton_linux_uitest.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698