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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1140083004: 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index abf7e4bc9e50a2f0cb90453b9f37f9bc9d6a7786..269b4716ef5394cf4896845482aea7f809d24a7c 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -321,7 +321,7 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context,
notify_disconnection_(false),
dialog_manager_(NULL),
is_showing_before_unload_dialog_(false),
- last_active_time_(base::TimeTicks::Now()),
+ last_active_time_(base::Time::Now()),
closed_by_user_gesture_(false),
minimum_zoom_percent_(static_cast<int>(kMinimumZoomFactor * 100)),
maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)),
@@ -1053,7 +1053,7 @@ void WebContentsImpl::NotifyNavigationStateChanged(
delegate_->NavigationStateChanged(this, changed_flags);
}
-base::TimeTicks WebContentsImpl::GetLastActiveTime() const {
+base::Time WebContentsImpl::GetLastActiveTime() const {
return last_active_time_;
}
@@ -1069,7 +1069,7 @@ void WebContentsImpl::WasShown() {
}
}
- last_active_time_ = base::TimeTicks::Now();
+ last_active_time_ = base::Time::Now();
// The resize rect might have changed while this was inactive -- send the new
// one to make sure it's up to date.
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698