| Index: chrome/browser/extensions/api/messaging/message_service.cc
|
| diff --git a/chrome/browser/extensions/api/messaging/message_service.cc b/chrome/browser/extensions/api/messaging/message_service.cc
|
| index e449bcfce73d125042eb151e0e1790b81feb7d5e..04cdfbc1b1a4d4c86f102416b51a9b9eb40cadd2 100644
|
| --- a/chrome/browser/extensions/api/messaging/message_service.cc
|
| +++ b/chrome/browser/extensions/api/messaging/message_service.cc
|
| @@ -22,6 +22,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/tab_contents/tab_util.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| +#include "chrome/common/extensions/background_info.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/extensions/extension_messages.h"
|
| #include "chrome/common/view_type.h"
|
| @@ -448,7 +449,7 @@ bool MessageService::MaybeAddPendingOpenChannelTask(
|
| ExtensionService* service = profile->GetExtensionService();
|
| const std::string& extension_id = params->target_extension_id;
|
| const Extension* extension = service->extensions()->GetByID(extension_id);
|
| - if (extension && extension->has_lazy_background_page()) {
|
| + if (extension && BackgroundInfo::HasLazyBackgroundPage(extension)) {
|
| // If the extension uses spanning incognito mode, make sure we're always
|
| // using the original profile since that is what the extension process
|
| // will use.
|
|
|