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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.cc

Issue 10649003: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase on HEAD Created 8 years, 6 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/webui/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index 58a3aaeaf4dc4c95971b607f5c62dbb3e735f2c9..ed877560453cfa772a67c00c71e9b5c1fec9dba5 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -53,6 +53,7 @@
#include "ui/gfx/codec/png_codec.h"
using content::WebContents;
+using extensions::APIPermission;
using extensions::Extension;
namespace {
@@ -146,7 +147,7 @@ void AppLauncherHandler::CreateAppInfo(const Extension* extension,
value->SetBoolean("is_webstore",
extension->id() == extension_misc::kWebStoreAppId);
- if (extension->HasAPIPermission(ExtensionAPIPermission::kAppNotifications)) {
+ if (extension->HasAPIPermission(APIPermission::kAppNotifications)) {
value->SetBoolean("notifications_disabled",
prefs->IsAppNotificationDisabled(extension->id()));
}

Powered by Google App Engine
This is Rietveld 408576698