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

Unified Diff: ash/common/system/chromeos/enterprise/tray_enterprise.cc

Issue 2715463004: Remove non-MD code from LabelTrayView (Closed)
Patch Set: Created 3 years, 10 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/enterprise/tray_enterprise.cc
diff --git a/ash/common/system/chromeos/enterprise/tray_enterprise.cc b/ash/common/system/chromeos/enterprise/tray_enterprise.cc
index 26f48caba17854093ab419d6b6cd83ee555fdcab..1b7bbb3f7c0a25b6407f467e87acc201e53f4af8 100644
--- a/ash/common/system/chromeos/enterprise/tray_enterprise.cc
+++ b/ash/common/system/chromeos/enterprise/tray_enterprise.cc
@@ -9,7 +9,7 @@
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/system_tray_notifier.h"
#include "ash/common/wm_shell.h"
-#include "ash/resources/grit/ash_resources.h"
+#include "ash/resources/vector_icons/vector_icons.h"
#include "base/logging.h"
#include "base/strings/string16.h"
@@ -32,18 +32,18 @@ void TrayEnterprise::UpdateEnterpriseMessage() {
}
views::View* TrayEnterprise::CreateDefaultView(LoginStatus status) {
- CHECK(tray_view_ == NULL);
+ CHECK(!tray_view_);
Evan Stade 2017/02/22 21:43:46 nit: DCHECK
tdanderson 2017/03/30 14:51:39 Done.
// For public accounts, enterprise ownership is indicated in the user details
// instead.
if (status == LoginStatus::PUBLIC)
- return NULL;
- tray_view_ = new LabelTrayView(this, IDR_AURA_UBER_TRAY_ENTERPRISE);
+ return nullptr;
+ tray_view_ = new LabelTrayView(this, kSystemMenuBusinessIcon);
UpdateEnterpriseMessage();
return tray_view_;
}
void TrayEnterprise::DestroyDefaultView() {
Evan Stade 2017/02/22 21:43:46 aside: it seems like this should be called Default
tdanderson 2017/03/30 14:51:39 Yes, agreed. Filed https://bugs.chromium.org/p/chr
- tray_view_ = NULL;
+ tray_view_ = nullptr;
}
void TrayEnterprise::OnEnterpriseDomainChanged() {

Powered by Google App Engine
This is Rietveld 408576698