Chromium Code Reviews| Index: chrome/browser/profiles/profile_status_menu_model.cc |
| =================================================================== |
| --- chrome/browser/profiles/profile_status_menu_model.cc (revision 0) |
| +++ chrome/browser/profiles/profile_status_menu_model.cc (revision 0) |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2011 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. |
| + |
| +#include "chrome/browser/profiles/profile_status_menu_model.h" |
| +#include "chrome/browser/profiles/profile.h" |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
| +// ProfileStatusMenuModel, public: |
| + |
| +ProfileStatusMenuModel::ProfileStatusMenuModel(Delegate* delegate, Profile* profile) |
|
Andrew T Wilson (Slow)
2011/05/20 00:22:09
line > 80 chars
rpetterson
2011/05/20 05:53:17
Done.
|
| + : ui::SimpleMenuModel(delegate), |
| + delegate_(delegate), |
| + profile_(profile) { |
| +} |
| + |
| +ProfileStatusMenuModel::~ProfileStatusMenuModel() { |
| +} |
| + |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
| +// ProfileStatusMenuModel, MenuModel implementation: |
| + |
| +void ProfileStatusMenuModel::ActivatedAt(int index) { |
| + if (delegate_) |
| + delegate_->ExecuteCommand(GetCommandIdAt(index), profile_); |
| +} |
| + |
| + |