Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2914)

Unified Diff: chrome/browser/ui/browser.cc

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index efda053694c2ffc68eee22b45643a3fb567f1d61..bb5841766d457d2c1950424d2fc2202ac64b2c85 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -142,6 +142,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"
@@ -2212,7 +2213,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) {

Powered by Google App Engine
This is Rietveld 408576698