| Index: chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc (revision 222045)
|
| +++ chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc (working copy)
|
| @@ -85,8 +85,9 @@
|
| return;
|
|
|
| if (!dictionary_) {
|
| - dictionary_ = SpellcheckServiceFactory::GetForProfile(
|
| - Profile::FromWebUI(web_ui()))->GetCustomDictionary();
|
| + SpellcheckService* service = SpellcheckServiceFactory::GetForContext(
|
| + Profile::FromWebUI(web_ui()));
|
| + dictionary_ = service->GetCustomDictionary();
|
| dictionary_->AddObserver(this);
|
| }
|
|
|
|
|