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

Unified Diff: chrome/browser/spellcheck_host.cc

Issue 6597075: FilePath: add a convertor to ASCII (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 0ea7ba8d9cd952b856f57477b2cf930d0b5f8909..d532b36662e79b584486f634e71cf353ae1a22da 100644
--- a/chrome/browser/spellcheck_host.cc
+++ b/chrome/browser/spellcheck_host.cc
@@ -268,9 +268,13 @@ void SpellCheckHost::DownloadDictionary() {
// Determine URL of file to download.
static const char kDownloadServerUrl[] =
"http://cache.pack.google.com/edgedl/chrome/dict/";
+ std::string bdict_file = bdict_file_path_.BaseName().MaybeAsASCII();
+ if (bdict_file.empty()) {
+ NOTREACHED();
+ return;
+ }
GURL url = GURL(std::string(kDownloadServerUrl) +
- StringToLowerASCII(WideToUTF8(
- bdict_file_path_.BaseName().ToWStringHack())));
+ StringToLowerASCII(bdict_file));
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