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

Unified Diff: ash/common/system/chromeos/session/logout_button_tray.cc

Issue 2108793002: mash: Convert system tray logout button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review comments, fix mash_unittests 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/common/system/chromeos/session/logout_button_tray.cc
diff --git a/ash/system/chromeos/session/logout_button_tray.cc b/ash/common/system/chromeos/session/logout_button_tray.cc
similarity index 94%
rename from ash/system/chromeos/session/logout_button_tray.cc
rename to ash/common/system/chromeos/session/logout_button_tray.cc
index 1ee41f03e32e51e11da62587fd978d439667bdbd..4e24ec042e5894fd5924b10c289de56c6a9b54e3 100644
--- a/ash/system/chromeos/session/logout_button_tray.cc
+++ b/ash/common/system/chromeos/session/logout_button_tray.cc
@@ -2,20 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/system/chromeos/session/logout_button_tray.h"
+#include "ash/common/system/chromeos/session/logout_button_tray.h"
#include <memory>
#include <utility>
#include "ash/common/shelf/shelf_types.h"
+#include "ash/common/system/chromeos/session/logout_confirmation_controller.h"
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/system_tray_notifier.h"
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_utils.h"
#include "ash/common/system/user/login_status.h"
#include "ash/common/wm_shell.h"
-#include "ash/shell.h"
-#include "ash/system/chromeos/session/logout_confirmation_controller.h"
#include "base/logging.h"
#include "grit/ash_resources.h"
#include "third_party/skia/include/core/SkColor.h"
@@ -138,8 +137,8 @@ void LogoutButtonTray::ButtonPressed(views::Button* sender,
if (dialog_duration_ <= base::TimeDelta()) {
// Sign out immediately if |dialog_duration_| is non-positive.
WmShell::Get()->system_tray_delegate()->SignOut();
- } else if (Shell::GetInstance()->logout_confirmation_controller()) {
- Shell::GetInstance()->logout_confirmation_controller()->ConfirmLogout(
+ } else if (WmShell::Get()->logout_confirmation_controller()) {
+ WmShell::Get()->logout_confirmation_controller()->ConfirmLogout(
base::TimeTicks::Now() + dialog_duration_);
}
}

Powered by Google App Engine
This is Rietveld 408576698