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

Unified Diff: ash/common/test/test_system_tray_delegate.cc

Issue 2568413002: Revert of ash: Use system tray mojo interface to show system update tray icon (Closed)
Patch Set: Created 4 years 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/common/test/test_system_tray_delegate.h ('k') | ash/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_system_tray_delegate.cc
diff --git a/ash/common/test/test_system_tray_delegate.cc b/ash/common/test/test_system_tray_delegate.cc
index 84b240c335d27d85ec3bd8857ea224ab6d6c6041..4d22fd3d12d3d9c489a34af51a732309d8b94636 100644
--- a/ash/common/test/test_system_tray_delegate.cc
+++ b/ash/common/test/test_system_tray_delegate.cc
@@ -16,6 +16,7 @@
namespace {
+bool g_system_update_required = false;
LoginStatus g_initial_status = LoginStatus::USER;
} // namespace
@@ -70,6 +71,13 @@
return login_status_ == LoginStatus::SUPERVISED;
}
+void TestSystemTrayDelegate::GetSystemUpdateInfo(UpdateInfo* info) const {
+ DCHECK(info);
+ info->severity = UpdateInfo::UPDATE_NONE;
+ info->update_required = g_system_update_required;
+ info->factory_reset_required = false;
+}
+
bool TestSystemTrayDelegate::GetSessionStartTime(
base::TimeTicks* session_start_time) {
// Just returns TimeTicks::Now(), so the remaining time is always the
« no previous file with comments | « ash/common/test/test_system_tray_delegate.h ('k') | ash/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698