| Index: chrome/browser/app_menu_model.h
|
| diff --git a/chrome/browser/app_menu_model.h b/chrome/browser/app_menu_model.h
|
| index 41343d40f6cb09108ce5db98de316aead3550a86..5dc5d443780effc1ffb955301ad0711b5ab07d19 100644
|
| --- a/chrome/browser/app_menu_model.h
|
| +++ b/chrome/browser/app_menu_model.h
|
| @@ -20,15 +20,26 @@ class AppMenuModel : public menus::SimpleMenuModel {
|
| Browser* browser);
|
| virtual ~AppMenuModel();
|
|
|
| + // Override this to handle the sync menu item (whose label is
|
| + // updated dynamically).
|
| + virtual bool IsLabelDynamicAt(int index) const;
|
| + virtual string16 GetLabelAt(int index) const;
|
| +
|
| private:
|
| void Build();
|
| void BuildProfileSubMenu();
|
|
|
| + string16 GetSyncMenuLabel() const;
|
| + bool IsSyncItem(int index) const;
|
| +
|
| // Contents of the profiles menu to populate with profile names.
|
| scoped_ptr<menus::SimpleMenuModel> profiles_menu_contents_;
|
|
|
| Browser* browser_; // weak
|
|
|
| + bool sync_item_enabled_;
|
| + int sync_item_index_; // -1 if sync_item_enabled_ is false.
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AppMenuModel);
|
| };
|
|
|
|
|