summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 20:44:08 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 20:44:08 +0000
commitbd17b70920f5a327eada613ef32e501b043cad51 (patch)
tree7d6deb4e24373ceb2ea9affb9fdd9dab5a1f6482 /chrome/browser/profile.cc
parenta12f3755769dea04a41785657c37dc90b443caaf (diff)
downloadchromium_src-bd17b70920f5a327eada613ef32e501b043cad51.zip
chromium_src-bd17b70920f5a327eada613ef32e501b043cad51.tar.gz
chromium_src-bd17b70920f5a327eada613ef32e501b043cad51.tar.bz2
Ports SpellChecker to use FilePaths instead of wstring.
by Rohit Rao (rohitrao@google.com) issue: http://codereview.chromium.org/28013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r--chrome/browser/profile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index e3fe08f..b2ad2f4 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -758,14 +758,14 @@ void ProfileImpl::InitializeSpellChecker(bool need_to_broadcast) {
bool enable_spellcheck = prefs->GetBoolean(prefs::kEnableSpellCheck);
if (enable_spellcheck) {
- std::wstring dict_dir;
+ FilePath dict_dir;
PathService::Get(chrome::DIR_APP_DICTIONARIES, &dict_dir);
// Note that, as the object pointed to by previously by spellchecker_
// is being deleted in the io thread, the spellchecker_ can be made to point
// to a new object (RE-initialized) in parallel in this UI thread.
spellchecker_ = new SpellChecker(dict_dir,
prefs->GetString(prefs::kSpellCheckDictionary), GetRequestContext(),
- std::wstring());
+ FilePath());
spellchecker_->AddRef(); // Manual refcounting.
} else {
spellchecker_ = NULL;