Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: ash/system/chromeos/network/tray_vpn.cc

Issue 2041233005: Moves ash::user::LoginStatus to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/network/tray_vpn.cc
diff --git a/ash/system/chromeos/network/tray_vpn.cc b/ash/system/chromeos/network/tray_vpn.cc
index e440d604e5a7ceb015c42cdbdfb52071696e4bcb..93f53a5bd174968113e1cceda37c91c196cc63c5 100644
--- a/ash/system/chromeos/network/tray_vpn.cc
+++ b/ash/system/chromeos/network/tray_vpn.cc
@@ -120,15 +120,15 @@ TrayVPN::TrayVPN(SystemTray* system_tray)
TrayVPN::~TrayVPN() {
}
-views::View* TrayVPN::CreateTrayView(user::LoginStatus status) {
+views::View* TrayVPN::CreateTrayView(LoginStatus status) {
return NULL;
}
-views::View* TrayVPN::CreateDefaultView(user::LoginStatus status) {
+views::View* TrayVPN::CreateDefaultView(LoginStatus status) {
CHECK(default_ == NULL);
if (!chromeos::NetworkHandler::IsInitialized())
return NULL;
- if (status == user::LOGGED_IN_NONE)
+ if (status == LoginStatus::NOT_LOGGED_IN)
return NULL;
if (!tray::VpnDefaultView::ShouldShow())
return NULL;
@@ -138,12 +138,12 @@ views::View* TrayVPN::CreateDefaultView(user::LoginStatus status) {
->IsInSecondaryLoginScreen();
default_ = new tray::VpnDefaultView(
- this, status != user::LOGGED_IN_LOCKED && !userAddingRunning);
+ this, status != LoginStatus::LOCKED && !userAddingRunning);
return default_;
}
-views::View* TrayVPN::CreateDetailedView(user::LoginStatus status) {
+views::View* TrayVPN::CreateDetailedView(LoginStatus status) {
CHECK(detailed_ == NULL);
if (!chromeos::NetworkHandler::IsInitialized())
return NULL;
@@ -167,8 +167,7 @@ void TrayVPN::DestroyDetailedView() {
detailed_ = NULL;
}
-void TrayVPN::UpdateAfterLoginStatusChange(user::LoginStatus status) {
-}
+void TrayVPN::UpdateAfterLoginStatusChange(LoginStatus status) {}
void TrayVPN::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {}

Powered by Google App Engine
This is Rietveld 408576698