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

Unified Diff: ash/common/system/user/user_card_view.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: cleanup 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/user/user_card_view.cc
diff --git a/ash/common/system/user/user_card_view.cc b/ash/common/system/user/user_card_view.cc
index ff20defe86b522ec68391cabf79198da13e1c853..c7f3ea3745746a71594f8b0d92d3df7fb2393154 100644
--- a/ash/common/system/user/user_card_view.cc
+++ b/ash/common/system/user/user_card_view.cc
@@ -19,6 +19,7 @@
#include "ash/common/system/user/rounded_image_view.h"
#include "ash/common/wm_shell.h"
#include "ash/resources/vector_icons/vector_icons.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "base/i18n/rtl.h"
#include "base/memory/ptr_util.h"
@@ -126,7 +127,7 @@ PublicAccountUserDetails::PublicAccountUserDetails(int max_width)
display_name = kDisplayNameMark[0] + display_name + kDisplayNameMark[0];
// Retrieve the domain managing the device and wrap it with markers.
base::string16 domain = base::UTF8ToUTF16(
- WmShell::Get()->system_tray_delegate()->GetEnterpriseDomain());
+ Shell::Get()->system_tray_delegate()->GetEnterpriseDomain());
base::RemoveChars(domain, kDisplayNameMark, &domain);
base::i18n::WrapStringWithLTRFormatting(&domain);
// Retrieve the label text, inserting the display name and domain.
@@ -230,7 +231,7 @@ void PublicAccountUserDetails::GetAccessibleNodeData(
void PublicAccountUserDetails::LinkClicked(views::Link* source,
int event_flags) {
DCHECK_EQ(source, learn_more_);
- WmShell::Get()->system_tray_controller()->ShowPublicAccountInfo();
+ Shell::Get()->system_tray_controller()->ShowPublicAccountInfo();
}
void PublicAccountUserDetails::CalculatePreferredSize() {
@@ -415,7 +416,7 @@ void UserCardView::AddUserContent(views::BoxLayout* layout,
base::string16 user_email_string;
if (login_status != LoginStatus::GUEST) {
user_email_string =
- WmShell::Get()->system_tray_delegate()->IsUserSupervised()
+ Shell::Get()->system_tray_delegate()->IsUserSupervised()
? l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_SUPERVISED_LABEL)
: base::UTF8ToUTF16(
delegate->GetUserInfo(user_index_)->GetDisplayEmail());

Powered by Google App Engine
This is Rietveld 408576698