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

Unified Diff: chrome/browser/spellchecker/spellcheck_host_impl.cc

Issue 9289007: Profiles: Move the Spelling system onto a ProfileKeyedServiceFactory. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 11 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/spellchecker/spellcheck_host_impl.cc
diff --git a/chrome/browser/spellchecker/spellcheck_host_impl.cc b/chrome/browser/spellchecker/spellcheck_host_impl.cc
index 5a633cf02e6cc008c28df4e937e3293f8d5e8775..845faf897171687cc9356d80fd69b76fcccd5d40 100644
--- a/chrome/browser/spellchecker/spellcheck_host_impl.cc
+++ b/chrome/browser/spellchecker/spellcheck_host_impl.cc
@@ -16,6 +16,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/spellchecker/spellcheck_factory.h"
#include "chrome/browser/spellchecker/spellcheck_host_metrics.h"
#include "chrome/browser/spellchecker/spellcheck_platform_mac.h"
#include "chrome/browser/spellchecker/spellcheck_profile_provider.h"
@@ -135,7 +136,7 @@ void SpellCheckHostImpl::InitForRenderer(content::RenderProcessHost* process) {
// Bug 103693: SpellCheckHostImpl and SpellCheckProfile should not
// depend on Profile interface.
Profile* profile = Profile::FromBrowserContext(process->GetBrowserContext());
- if (profile->GetSpellCheckHost() != this)
+ if (SpellCheckFactory::GetHostForProfile(profile) != this)
return;
PrefService* prefs = profile->GetPrefs();

Powered by Google App Engine
This is Rietveld 408576698