| Index: chrome/browser/extensions/api/gcm/gcm_api.cc
|
| diff --git a/chrome/browser/extensions/api/gcm/gcm_api.cc b/chrome/browser/extensions/api/gcm/gcm_api.cc
|
| index ca57f8af9eff399d596e6390336646f32595c450..6e3cebb157919b4ac577f6aa5cba64e46e25cba6 100644
|
| --- a/chrome/browser/extensions/api/gcm/gcm_api.cc
|
| +++ b/chrome/browser/extensions/api/gcm/gcm_api.cc
|
| @@ -97,7 +97,7 @@ bool GcmApiFunction::RunImpl() {
|
| }
|
|
|
| bool GcmApiFunction::IsGcmApiEnabled() const {
|
| - Profile* profile = Profile::FromBrowserContext(context());
|
| + Profile* profile = Profile::FromBrowserContext(browser_context());
|
|
|
| // GCM is not supported in incognito mode.
|
| if (profile->IsOffTheRecord())
|
| @@ -109,7 +109,7 @@ bool GcmApiFunction::IsGcmApiEnabled() const {
|
|
|
| gcm::GCMProfileService* GcmApiFunction::GCMProfileService() const {
|
| return gcm::GCMProfileServiceFactory::GetForProfile(
|
| - Profile::FromBrowserContext(context()));
|
| + Profile::FromBrowserContext(browser_context()));
|
| }
|
|
|
| GcmRegisterFunction::GcmRegisterFunction() {}
|
|
|