Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3329)

Unified Diff: chrome/browser/spellcheck_host_impl.cc

Issue 7480028: Removal of Profile from content part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698