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

Unified Diff: ash/system/tray/system_tray_controller.cc

Issue 2839043004: chromeos: Refactor ash SystemTrayDelegate enterprise methods to mojo (Closed)
Patch Set: review comments Created 3 years, 8 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
« no previous file with comments | « ash/system/tray/system_tray_controller.h ('k') | ash/system/tray/system_tray_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_controller.cc
diff --git a/ash/system/tray/system_tray_controller.cc b/ash/system/tray/system_tray_controller.cc
index 8b40876cc23243a3fb00c52b738ae8d6d0a12a1e..5f3d07a08c30ca5d03089df12ab6e0671ea72e11 100644
--- a/ash/system/tray/system_tray_controller.cc
+++ b/ash/system/tray/system_tray_controller.cc
@@ -100,6 +100,11 @@ void SystemTrayController::ShowPublicAccountInfo() {
system_tray_client_->ShowPublicAccountInfo();
}
+void SystemTrayController::ShowEnterpriseInfo() {
+ if (system_tray_client_)
+ system_tray_client_->ShowEnterpriseInfo();
+}
+
void SystemTrayController::ShowNetworkConfigure(const std::string& network_id) {
if (system_tray_client_)
system_tray_client_->ShowNetworkConfigure(network_id);
@@ -183,6 +188,14 @@ void SystemTrayController::SetUse24HourClock(bool use_24_hour) {
Shell::Get()->system_tray_notifier()->NotifyDateFormatChanged();
}
+void SystemTrayController::SetEnterpriseDomain(
+ const std::string& enterprise_domain,
+ bool active_directory_managed) {
+ enterprise_domain_ = enterprise_domain;
+ active_directory_managed_ = active_directory_managed;
+ Shell::Get()->system_tray_notifier()->NotifyEnterpriseDomainChanged();
+}
+
void SystemTrayController::ShowUpdateIcon(mojom::UpdateSeverity severity,
bool factory_reset_required,
mojom::UpdateType update_type) {
« no previous file with comments | « ash/system/tray/system_tray_controller.h ('k') | ash/system/tray/system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698