| Index: chrome/browser/spellcheck_host_impl.cc
|
| diff --git a/chrome/browser/spellcheck_host_impl.cc b/chrome/browser/spellcheck_host_impl.cc
|
| index e0f9fd2ae133590441d8eb50cdb3a5568c7f2abe..f490e0d32cd6cda24b0b36f6360b728ad0f9dab0 100644
|
| --- a/chrome/browser/spellcheck_host_impl.cc
|
| +++ b/chrome/browser/spellcheck_host_impl.cc
|
| @@ -143,7 +143,8 @@ void SpellCheckHostImpl::UnsetObserver() {
|
| void SpellCheckHostImpl::InitForRenderer(RenderProcessHost* process) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
| - PrefService* prefs = process->profile()->GetPrefs();
|
| + Profile* profile = Profile::FromBrowserContext(process->browser_context());
|
| + PrefService* prefs = profile->GetPrefs();
|
| IPC::PlatformFileForTransit file;
|
|
|
| if (GetDictionaryFile() != base::kInvalidPlatformFileValue) {
|
|
|