From ddd231eaa03153f6d04894cceb0b4480755e1277 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Tue, 29 Jun 2010 20:35:19 +0000 Subject: Change a bunch of string types. Started out just trying to change PrefService::GetString and ::SetString. This snowballed a little bit. Had to change a bunch of url strings in search_engines/ from wstring to string (some of them may be better off as GURLs, but UTF-8 is a step in the right direction, since that's what GURL uses internally, as well as externally via its setters/getters). TODO (later patch): things that ask for accepted languages should use std::string, not std::wstring. BUG=none TEST=try bots Review URL: http://codereview.chromium.org/2854015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51157 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/profile.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/profile.cc') diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc index 7a34dbc..a2ddb0b 100644 --- a/chrome/browser/profile.cc +++ b/chrome/browser/profile.cc @@ -1579,8 +1579,9 @@ void ProfileImpl::ReinitializeSpellCheckHost(bool force) { PrefService* prefs = GetPrefs(); if (prefs->GetBoolean(prefs::kEnableSpellCheck)) { // Retrieve the (perhaps updated recently) dictionary name from preferences. - spellcheck_host_ = new SpellCheckHost(this, - WideToASCII(prefs->GetString(prefs::kSpellCheckDictionary)), + spellcheck_host_ = new SpellCheckHost( + this, + prefs->GetString(prefs::kSpellCheckDictionary), GetRequestContext()); spellcheck_host_->Initialize(); } else if (notify) { -- cgit v1.1