| 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 60dd2922a90f4823e89760e402a8b04e349b9768..09275a38c87006124000569d008ffe892df1a726 100644
|
| --- a/chrome/browser/extensions/api/gcm/gcm_api.cc
|
| +++ b/chrome/browser/extensions/api/gcm/gcm_api.cc
|
| @@ -13,11 +13,11 @@
|
| #include "base/strings/string_util.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| -#include "chrome/browser/services/gcm/gcm_profile_service.h"
|
| #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
|
| #include "chrome/common/extensions/api/gcm.h"
|
| #include "components/gcm_driver/common/gcm_messages.h"
|
| #include "components/gcm_driver/gcm_driver.h"
|
| +#include "components/gcm_driver/gcm_profile_service.h"
|
| #include "extensions/browser/event_router.h"
|
| #include "extensions/common/extension.h"
|
|
|
| @@ -96,7 +96,7 @@ bool GcmApiFunction::IsGcmApiEnabled() const {
|
| if (profile->IsOffTheRecord())
|
| return false;
|
|
|
| - return gcm::GCMProfileService::IsGCMEnabled(profile);
|
| + return gcm::GCMProfileService::IsGCMEnabled(profile->GetPrefs());
|
| }
|
|
|
| gcm::GCMDriver* GcmApiFunction::GetGCMDriver() const {
|
|
|