Chromium Code Reviews| 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, Profile* prof ile) | |
|
Andrew T Wilson (Slow)
2011/05/20 00:22:09
line > 80 chars
rpetterson
2011/05/20 05:53:17
Done.
| |
| 12 : ui::SimpleMenuModel(delegate), | |
| 13 delegate_(delegate), | |
| 14 profile_(profile) { | |
| 15 } | |
| 16 | |
| 17 ProfileStatusMenuModel::~ProfileStatusMenuModel() { | |
| 18 } | |
| 19 | |
| 20 | |
| 21 //////////////////////////////////////////////////////////////////////////////// | |
| 22 // ProfileStatusMenuModel, MenuModel implementation: | |
| 23 | |
| 24 void ProfileStatusMenuModel::ActivatedAt(int index) { | |
| 25 if (delegate_) | |
| 26 delegate_->ExecuteCommand(GetCommandIdAt(index), profile_); | |
| 27 } | |
| 28 | |
| 29 | |
| OLD | NEW |