| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/profiles/avatar_menu_actions_chromeos.h" | 5 #include "chrome/browser/chromeos/profiles/avatar_menu_actions_chromeos.h" |
| 6 | 6 |
| 7 #include "ash/multi_profile_uma.h" | 7 #include "ash/multi_profile_uma.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
| 10 #include "chrome/browser/chromeos/login/user_manager.h" | 10 #include "chrome/browser/chromeos/login/user_manager.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool AvatarMenuActionsChromeOS::ShouldShowAddNewProfileLink() const { | 38 bool AvatarMenuActionsChromeOS::ShouldShowAddNewProfileLink() const { |
| 39 // |browser_| can be NULL in unit_tests. | 39 // |browser_| can be NULL in unit_tests. |
| 40 return (!browser_ || !browser_->profile()->IsManaged()) && | 40 return (!browser_ || !browser_->profile()->IsManaged()) && |
| 41 UserManager::Get()->GetUsersAdmittedForMultiProfile().size(); | 41 UserManager::Get()->GetUsersAdmittedForMultiProfile().size(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool AvatarMenuActionsChromeOS::ShouldShowEditProfileLink() const { | 44 bool AvatarMenuActionsChromeOS::ShouldShowEditProfileLink() const { |
| 45 return false; | 45 return false; |
| 46 } | 46 } |
| 47 | 47 |
| 48 content::WebContents* AvatarMenuActionsChromeOS::BeginSignOut() { |
| 49 NOTIMPLEMENTED(); |
| 50 return NULL; |
| 51 } |
| 52 |
| 53 void AvatarMenuActionsChromeOS::SetLogoutURL(const std::string& logout_url) { |
| 54 NOTIMPLEMENTED(); |
| 55 } |
| 56 |
| 48 void AvatarMenuActionsChromeOS::ActiveBrowserChanged(Browser* browser) { | 57 void AvatarMenuActionsChromeOS::ActiveBrowserChanged(Browser* browser) { |
| 49 browser_ = browser; | 58 browser_ = browser; |
| 50 } | 59 } |
| 51 | 60 |
| 52 } // namespace chromeos | 61 } // namespace chromeos |
| OLD | NEW |