| Index: chrome/browser/extensions/api/spellcheck/spellcheck_api.cc
|
| diff --git a/chrome/browser/extensions/api/spellcheck/spellcheck_api.cc b/chrome/browser/extensions/api/spellcheck/spellcheck_api.cc
|
| index f6fa6fdc6c0afd32cf26b2586ccb7f097c8cbcb1..a249b4a26603091e5a5135dda531125b01220044 100644
|
| --- a/chrome/browser/extensions/api/spellcheck/spellcheck_api.cc
|
| +++ b/chrome/browser/extensions/api/spellcheck/spellcheck_api.cc
|
| @@ -42,7 +42,8 @@ SpellcheckService::DictionaryFormat GetDictionaryFormat(std::string format) {
|
|
|
| SpellcheckAPI::SpellcheckAPI(content::BrowserContext* context) {
|
| Profile* profile = Profile::FromBrowserContext(context);
|
| - registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
|
| + registrar_.Add(this,
|
| + chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
|
| content::Source<Profile>(profile));
|
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
|
| content::Source<Profile>(profile));
|
| @@ -66,7 +67,7 @@ void SpellcheckAPI::Observe(int type,
|
| Profile* profile = content::Source<Profile>(source).ptr();
|
| SpellcheckService* spellcheck = NULL;
|
| switch (type) {
|
| - case chrome::NOTIFICATION_EXTENSION_LOADED: {
|
| + case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: {
|
| const Extension* extension = content::Details<Extension>(details).ptr();
|
| SpellcheckDictionaryInfo* spellcheck_info =
|
| GetSpellcheckDictionaryInfo(extension);
|
|
|