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

Unified Diff: chrome/browser/spellcheck_host.cc

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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/spellcheck_host.cc
diff --git a/chrome/browser/spellcheck_host.cc b/chrome/browser/spellcheck_host.cc
index 4c59b5676007b6dd8cef41ff975cfee97d567910..103b4c40e47cee6542c22deabb231ee3814dbb83 100644
--- a/chrome/browser/spellcheck_host.cc
+++ b/chrome/browser/spellcheck_host.cc
@@ -233,8 +233,8 @@ void SpellCheckHost::DownloadDictionary() {
static const char kDownloadServerUrl[] =
"http://cache.pack.google.com/edgedl/chrome/dict/";
GURL url = GURL(std::string(kDownloadServerUrl) +
- StringToLowerASCII(WideToUTF8(
- bdict_file_path_.BaseName().ToWStringHack())));
+ StringToLowerASCII(UTF16ToUTF8(
+ bdict_file_path_.BaseName().LossyDisplayName())));
Avi (use Gerrit) 2011/02/01 22:46:25 Whoa. LossyDisplayName is for display, not as a ge
fetcher_.reset(new URLFetcher(url, URLFetcher::GET, this));
fetcher_->set_request_context(request_context_getter_);
tried_to_download_ = true;

Powered by Google App Engine
This is Rietveld 408576698