Index: chrome/browser/spellchecker/spellcheck_service_browsertest.cc |
=================================================================== |
--- chrome/browser/spellchecker/spellcheck_service_browsertest.cc (revision 222045) |
+++ chrome/browser/spellchecker/spellcheck_service_browsertest.cc (working copy) |
@@ -61,15 +61,15 @@ |
// Ensure that the SpellcheckService object does not already exist. Otherwise |
// the next line will not force creation of the SpellcheckService and the |
// test will fail. |
- SpellcheckService* service = |
- SpellcheckServiceFactory::GetForProfileWithoutCreating(GetProfile()); |
+ SpellcheckService* service = static_cast<SpellcheckService*>( |
+ GetInstance()->GetServiceForBrowserContext(context, false)); |
groby-ooo-7-16
2013/09/10 19:09:51
Does this get the context somewhere? Can't see tha
msmith.v3
2013/09/10 19:27:50
Yep - copy-paste error. Sure that's going to break
msmith.v3
2013/09/11 19:25:07
This turned out to be problematic. The reason for
groby-ooo-7-16
2013/09/12 21:35:53
Expose it in spellcheck_factory.h via FRIEND_TEST_
msmith.v3
2013/09/13 17:02:14
Done.
|
ASSERT_EQ(NULL, service); |
// Getting the spellcheck_service will initialize the SpellcheckService |
// object with the corrupted BDICT file created above since the hunspell |
// dictionary is loaded in the SpellcheckService constructor right now. |
// The SpellCheckHost object will send a BDICT_CORRUPTED event. |
- SpellcheckServiceFactory::GetForProfile(GetProfile()); |
+ SpellcheckServiceFactory::GetForContext(GetProfile()); |
groby-ooo-7-16
2013/09/10 19:09:51
Use context.
msmith.v3
2013/09/10 19:27:50
What's the proper way to grab the context inside o
groby-ooo-7-16
2013/09/10 20:48:07
GetProfile() is fine - I was just assuming you'd a
msmith.v3
2013/09/13 17:02:14
Done.
|
// Check the received event. Also we check if Chrome has successfully deleted |
// the corrupted dictionary. We delete the corrupted dictionary to avoid |