OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/profiles/profile_status_menu_model.h" |
| 6 #include "chrome/browser/profiles/profile.h" |
| 7 |
| 8 //////////////////////////////////////////////////////////////////////////////// |
| 9 // ProfileStatusMenuModel, public: |
| 10 |
| 11 ProfileStatusMenuModel::ProfileStatusMenuModel(Delegate* delegate, |
| 12 Profile* profile) |
| 13 : ui::SimpleMenuModel(delegate), |
| 14 delegate_(delegate), |
| 15 profile_(profile) { |
| 16 } |
| 17 |
| 18 ProfileStatusMenuModel::~ProfileStatusMenuModel() { |
| 19 } |
| 20 |
| 21 |
| 22 //////////////////////////////////////////////////////////////////////////////// |
| 23 // ProfileStatusMenuModel, MenuModel implementation: |
| 24 |
| 25 void ProfileStatusMenuModel::ActivatedAt(int index) { |
| 26 if (delegate_) |
| 27 delegate_->ExecuteCommand(GetCommandIdAt(index), profile_); |
| 28 } |
| 29 |
| 30 |
OLD | NEW |