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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 23868013: Refactor dependency on Profile to BrowserContext in spell check. (Closed) Base URL: http://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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/sync/profile_sync_components_factory_impl.cc
===================================================================
--- chrome/browser/sync/profile_sync_components_factory_impl.cc (revision 222045)
+++ chrome/browser/sync/profile_sync_components_factory_impl.cc (working copy)
@@ -378,7 +378,7 @@
#endif
#if defined(ENABLE_SPELLCHECK)
case syncer::DICTIONARY:
- return SpellcheckServiceFactory::GetForProfile(profile_)->
+ return SpellcheckServiceFactory::GetForContext(profile_)->
GetCustomDictionary()->AsWeakPtr();
#endif
case syncer::FAVICON_IMAGES:

Powered by Google App Engine
This is Rietveld 408576698