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

Unified Diff: ui/base/user_activity/user_activity_detector.h

Issue 1923943003: Add logging to remote commands (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Syslog logging in upload_job_impl Created 4 years, 6 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: ui/base/user_activity/user_activity_detector.h
diff --git a/ui/base/user_activity/user_activity_detector.h b/ui/base/user_activity/user_activity_detector.h
index a480bedd28ecd58557ee1ee64755e37d3b3e0062..f2f68897175bac509db84993e54c19348188e66e 100644
--- a/ui/base/user_activity/user_activity_detector.h
+++ b/ui/base/user_activity/user_activity_detector.h
@@ -34,6 +34,7 @@ class UI_BASE_EXPORT UserActivityDetector : public ui::PlatformEventObserver {
static UserActivityDetector* Get();
base::TimeTicks last_activity_time() const { return last_activity_time_; }
+ std::string last_activity_name() const { return last_activity_name_; }
void set_now_for_test(base::TimeTicks now) { now_for_test_ = now; }
@@ -67,6 +68,9 @@ class UI_BASE_EXPORT UserActivityDetector : public ui::PlatformEventObserver {
// Last time at which user activity was observed.
base::TimeTicks last_activity_time_;
+ // Name of the last user activity event.
+ std::string last_activity_name_;
+
// Last time at which we notified observers that the user was active.
base::TimeTicks last_observer_notification_time_;

Powered by Google App Engine
This is Rietveld 408576698