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

Unified Diff: components/devtools_discovery/basic_target_descriptor.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
Index: components/devtools_discovery/basic_target_descriptor.cc
diff --git a/components/devtools_discovery/basic_target_descriptor.cc b/components/devtools_discovery/basic_target_descriptor.cc
index e425b8ba3fa515ba0e8cbbf22bffbdfba232582c..d8d2f8386ef0b79e60154dde82e3ccbce19f7f78 100644
--- a/components/devtools_discovery/basic_target_descriptor.cc
+++ b/components/devtools_discovery/basic_target_descriptor.cc
@@ -47,7 +47,7 @@
content::NavigationEntry* entry = controller.GetActiveEntry();
if (entry != NULL && entry->GetURL().is_valid())
favicon_url_ = entry->GetFavicon().url;
- last_active_time_ = web_contents->GetLastActiveTime();
+ last_activity_time_ = web_contents->GetLastActiveTime();
}
}
@@ -82,8 +82,8 @@
return favicon_url_;
}
-base::Time BasicTargetDescriptor::GetLastActiveTime() const {
- return last_active_time_;
+base::TimeTicks BasicTargetDescriptor::GetLastActivityTime() const {
+ return last_activity_time_;
}
bool BasicTargetDescriptor::IsAttached() const {
« no previous file with comments | « components/devtools_discovery/basic_target_descriptor.h ('k') | components/devtools_discovery/devtools_target_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698