| 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() {
|
|
|