| Index: chrome/browser/tab_menu_model.h
|
| diff --git a/chrome/browser/tab_menu_model.h b/chrome/browser/tab_menu_model.h
|
| index c98731d38cae11ccb1f03bea24e4a69b04ceb381..dca49afd8f6a1038faa9b8dbaeaae6c3b80bc290 100644
|
| --- a/chrome/browser/tab_menu_model.h
|
| +++ b/chrome/browser/tab_menu_model.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
|
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
|
| // source code is governed by a BSD-style license that can be found in the
|
| // LICENSE file.
|
|
|
| @@ -10,14 +10,16 @@
|
| class Browser;
|
|
|
| // A menu model that builds the contents of the tab context menu. This menu has
|
| -// only one level (no submenus).
|
| +// only one level (no submenus). TabMenuModel caches local state from the
|
| +// tab (such as the pinned state). To make sure the menu reflects the real state
|
| +// of the tab a new TabMenuModel should be created each time the menu is shown.
|
| class TabMenuModel : public menus::SimpleMenuModel {
|
| public:
|
| - explicit TabMenuModel(menus::SimpleMenuModel::Delegate* delegate);
|
| + TabMenuModel(menus::SimpleMenuModel::Delegate* delegate, bool is_pinned);
|
| virtual ~TabMenuModel() {}
|
|
|
| private:
|
| - void Build();
|
| + void Build(bool is_pinned);
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TabMenuModel);
|
| };
|
|
|