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

Unified Diff: ash/common/system/chromeos/settings/tray_settings.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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/settings/tray_settings.cc
diff --git a/ash/common/system/chromeos/settings/tray_settings.cc b/ash/common/system/chromeos/settings/tray_settings.cc
index 933164a0a2bae6f3dabd29f1ca587ce3eb3d1c1f..0d8a0aaef2c372693aff0ad534644becbf09b71e 100644
--- a/ash/common/system/chromeos/settings/tray_settings.cc
+++ b/ash/common/system/chromeos/settings/tray_settings.cc
@@ -16,6 +16,7 @@
#include "ash/common/system/tray/tray_popup_utils.h"
#include "ash/common/wm_shell.h"
#include "ash/resources/grit/ash_resources.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
@@ -87,7 +88,7 @@ class SettingsDefaultView : public ActionableView,
return false;
}
- WmShell::Get()->system_tray_controller()->ShowSettings();
+ Shell::Get()->system_tray_controller()->ShowSettings();
CloseSystemBubble();
return true;
}
@@ -149,7 +150,7 @@ views::View* TraySettings::CreateDefaultView(LoginStatus status) {
if ((status == LoginStatus::NOT_LOGGED_IN || status == LoginStatus::LOCKED) &&
!PowerStatus::Get()->IsBatteryPresent())
return nullptr;
- if (!WmShell::Get()->system_tray_delegate()->ShouldShowSettings())
+ if (!Shell::Get()->system_tray_delegate()->ShouldShowSettings())
return nullptr;
CHECK(default_view_ == nullptr);
default_view_ = new tray::SettingsDefaultView(this, status);

Powered by Google App Engine
This is Rietveld 408576698