| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 98afd9718894bc6894ab990c9ad1c15e81b733ad..be83568e0bf5d7efa78db8597109173f7affe0f4 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -143,6 +143,7 @@
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/custom_handlers/protocol_handler.h"
|
| +#include "chrome/common/extensions/background_info.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/extensions/extension_constants.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -2240,7 +2241,7 @@ bool Browser::MaybeCreateBackgroundContents(int route_id,
|
| }
|
|
|
| // Only allow a single background contents per app.
|
| - bool allow_js_access = extension->allow_background_js_access();
|
| + bool allow_js_access = extensions::BackgroundInfo::AllowJSAccess(extension);
|
| BackgroundContents* existing =
|
| service->GetAppBackgroundContents(ASCIIToUTF16(extension->id()));
|
| if (existing) {
|
|
|