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

Unified Diff: chrome/browser/android/dev_tools_discovery_provider_android.cc

Issue 1145233002: Revert of Change WebContents::last_active_time_ to Time instead of Timeticks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | chrome/browser/chromeos/memory/oom_priority_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/dev_tools_discovery_provider_android.cc
diff --git a/chrome/browser/android/dev_tools_discovery_provider_android.cc b/chrome/browser/android/dev_tools_discovery_provider_android.cc
index 5a2eb32ad49334d1a4da93dac77a43e3e8126f59..08d3e5579a1e88229adf43448ecfa097822fdd17 100644
--- a/chrome/browser/android/dev_tools_discovery_provider_android.cc
+++ b/chrome/browser/android/dev_tools_discovery_provider_android.cc
@@ -65,7 +65,9 @@
return favicon_url_;
}
- base::Time GetLastActiveTime() const override { return last_active_time_; }
+ base::TimeTicks GetLastActivityTime() const override {
+ return last_activity_time_;
+ }
std::string GetId() const override {
return base::IntToString(tab_id_);
@@ -132,7 +134,8 @@
title_(base::UTF16ToUTF8(web_contents->GetTitle())),
url_(web_contents->GetURL()),
favicon_url_(CalculateFaviconURL()),
- last_active_time_(web_contents->GetLastActiveTime()) {}
+ last_activity_time_(web_contents->GetLastActiveTime()) {
+ }
TabDescriptor(int tab_id, const base::string16& title, const GURL& url)
: tab_id_(tab_id),
@@ -188,7 +191,7 @@
const std::string title_;
const GURL url_;
const GURL favicon_url_;
- const base::Time last_active_time_;
+ const base::TimeTicks last_activity_time_;
DISALLOW_COPY_AND_ASSIGN(TabDescriptor);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/memory/oom_priority_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698