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

Unified Diff: chrome/common/extensions/extension.cc

Issue 341029: Only dispatch tab events when there is someone listening (Closed)
Patch Set: pre-review Created 11 years, 2 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/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index db05c4bc819efaca3a6d5ac762c26b610fdd20e9..0447fade38139691d1a48b995ac4c251ed725475 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -99,9 +99,12 @@ const int Extension::kIconSizes[] = {
const int Extension::kPageActionIconMaxSize = 19;
const int Extension::kBrowserActionIconMaxSize = 19;
+const char* Extension::kTabPermission = "tabs";
+const char* Extension::kBookmarkPermission = "bookmarks";
+
const char* Extension::kPermissionNames[] = {
- "tabs",
- "bookmarks",
+ Extension::kTabPermission,
+ Extension::kBookmarkPermission,
};
const size_t Extension::kNumPermissions =
arraysize(Extension::kPermissionNames);
« chrome/browser/extensions/extensions_service.cc ('K') | « chrome/common/extensions/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698