| Index: chrome/browser/ui/webui/options/language_options_handler_common.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/options/language_options_handler_common.cc (revision 222045)
|
| +++ chrome/browser/ui/webui/options/language_options_handler_common.cc (working copy)
|
| @@ -250,8 +250,9 @@
|
| if (hunspell_dictionary_.get())
|
| hunspell_dictionary_->RemoveObserver(this);
|
| hunspell_dictionary_.reset();
|
| - hunspell_dictionary_ = SpellcheckServiceFactory::GetForProfile(
|
| - Profile::FromWebUI(web_ui()))->GetHunspellDictionary()->AsWeakPtr();
|
| + SpellcheckService* service = SpellcheckServiceFactory::GetForContext(
|
| + Profile::FromWebUI(web_ui()));
|
| + hunspell_dictionary_ = service->GetHunspellDictionary()->AsWeakPtr();
|
| hunspell_dictionary_->AddObserver(this);
|
| }
|
|
|
|
|