Index: chrome/browser/protector/settings_change_global_error.h |
diff --git a/chrome/browser/protector/settings_change_global_error.h b/chrome/browser/protector/settings_change_global_error.h |
index d7db869af3bbafd6c1a05d8955eb13947ad0c705..7a1b462a55b53e63f633248b8494f81d057708c2 100644 |
--- a/chrome/browser/protector/settings_change_global_error.h |
+++ b/chrome/browser/protector/settings_change_global_error.h |
@@ -6,10 +6,13 @@ |
#define CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_H_ |
#pragma once |
+#include <bitset> |
+ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
+#include "chrome/app/chrome_command_ids.h" |
#include "chrome/browser/protector/base_setting_change.h" |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/global_error.h" |
@@ -40,6 +43,9 @@ class SettingsChangeGlobalError : public GlobalError, |
// Removes global error from its profile. |
void RemoveFromProfile(); |
+ // Returns the change instance to which this error refers. |
+ BaseSettingChange* change() { return change_; } |
+ |
private: |
// GlobalError implementation. |
virtual bool HasBadge() OVERRIDE; |
@@ -97,6 +103,13 @@ class SettingsChangeGlobalError : public GlobalError, |
base::WeakPtrFactory<SettingsChangeGlobalError> weak_factory_; |
+ // Menu command ID assigned to |this| from the pool of available IDs. |
+ int menu_id_; |
+ |
+ // Unset bits indicate available command IDs. |
+ static std::bitset<IDC_SHOW_SETTINGS_CHANGE_LAST - |
whywhat
2012/02/29 18:55:14
Using statis non-elementary types members is also
Ivan Korotkov
2012/02/29 19:23:44
As discussed, it's used application-wide for vecto
|
+ IDC_SHOW_SETTINGS_CHANGE_FIRST + 1> menu_ids_; |
+ |
DISALLOW_COPY_AND_ASSIGN(SettingsChangeGlobalError); |
}; |