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

Unified Diff: chrome/browser/extensions/extension_tab_helper.cc

Issue 8776022: Move app notification getChannel API out of experimental (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another unit test fix Created 9 years 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/extensions/extension_tab_helper.cc
diff --git a/chrome/browser/extensions/extension_tab_helper.cc b/chrome/browser/extensions/extension_tab_helper.cc
index 4494bb1d2d390847256d0afb11c1cedf7b46b700..1853360ae223acfe14e616a0ace4e7b1a86d45b7 100644
--- a/chrome/browser/extensions/extension_tab_helper.cc
+++ b/chrome/browser/extensions/extension_tab_helper.cc
@@ -177,7 +177,7 @@ void ExtensionTabHelper::OnGetAppNotifyChannel(
bool allowed =
extension &&
extension->HasAPIPermission(
- ExtensionAPIPermission::kExperimental) &&
+ ExtensionAPIPermission::kAppNotifications) &&
process_map->Contains(extension->id(), process->GetID());
if (!allowed) {
Send(new ExtensionMsg_GetAppNotifyChannelResponse(
« no previous file with comments | « chrome/browser/extensions/app_notification_browsertest.cc ('k') | chrome/common/extensions/extension_permission_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698