diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 20:44:08 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 20:44:08 +0000 |
commit | bd17b70920f5a327eada613ef32e501b043cad51 (patch) | |
tree | 7d6deb4e24373ceb2ea9affb9fdd9dab5a1f6482 /chrome/browser/profile.cc | |
parent | a12f3755769dea04a41785657c37dc90b443caaf (diff) | |
download | chromium_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.cc | 4 |
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; |