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

Unified Diff: chrome/common/page_action.cc

Issue 246037: Integrate browser actions with the wrench menu. Browser actions (Closed)
Patch Set: alphabetize Created 11 years, 3 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
« no previous file with comments | « chrome/common/page_action.h ('k') | chrome/test/data/extensions/samples/make_page_red/background.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/page_action.cc
diff --git a/chrome/common/page_action.cc b/chrome/common/page_action.cc
index f2b6f24f632247cac6fde88dec8b5e623432ba76..ebe8eb47ce7a7431bf73e146cfd9d673cf0a65d1 100644
--- a/chrome/common/page_action.cc
+++ b/chrome/common/page_action.cc
@@ -4,8 +4,14 @@
#include "chrome/common/page_action.h"
+#include "base/logging.h"
+#include "chrome/app/chrome_dll_resource.h"
+
+int ContextualAction::next_command_id_ = IDC_BROWSER_ACTION_FIRST;
+
ContextualAction::ContextualAction()
- : type_(PAGE_ACTION) {
+ : type_(PAGE_ACTION), command_id_(next_command_id_++) {
+ DCHECK(command_id_ <= IDC_BROWSER_ACTION_LAST);
}
ContextualAction::~ContextualAction() {
« no previous file with comments | « chrome/common/page_action.h ('k') | chrome/test/data/extensions/samples/make_page_red/background.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698