| 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 996624a17479f8978cd9e128a6baa552102eae5a..7f182f5d28a11a15c8a711ac7fc56b408895d295 100644
|
| --- a/chrome/browser/extensions/api/spellcheck/spellcheck_api.cc
|
| +++ b/chrome/browser/extensions/api/spellcheck/spellcheck_api.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/lazy_instance.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/spellchecker/spellcheck_factory.h"
|
| #include "chrome/browser/spellchecker/spellcheck_service.h"
|
| #include "chrome/common/extensions/api/spellcheck/spellcheck_handler.h"
|
| @@ -39,8 +40,8 @@ SpellcheckService::DictionaryFormat GetDictionaryFormat(std::string format) {
|
|
|
| } // namespace
|
|
|
| -
|
| -SpellcheckAPI::SpellcheckAPI(Profile* profile) {
|
| +SpellcheckAPI::SpellcheckAPI(content::BrowserContext* context) {
|
| + Profile* profile = Profile::FromBrowserContext(context);
|
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
|
| content::Source<Profile>(profile));
|
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
|
|
|