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

Unified Diff: chrome/browser/chromeos/memory/oom_priority_manager_unittest.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: chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
diff --git a/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc b/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
index 6c2e6721d1a5d5e7f50577fa52cf8e91a95ab14d..9280b9f7bbee5438a1b054ad5d874d19d2fb08c8 100644
--- a/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
+++ b/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
@@ -35,13 +35,12 @@
// desired order.
TEST_F(OomPriorityManagerTest, Comparator) {
chromeos::OomPriorityManager::TabStatsList test_list;
- const base::Time now = base::Time::Now();
+ const base::TimeTicks now = base::TimeTicks::Now();
// Add kSelected last to verify we are sorting the array.
{
OomPriorityManager::TabStats stats;
- stats.last_active = now;
stats.is_pinned = true;
stats.renderer_handle = kPinned;
stats.child_process_host_id = kPinned;
@@ -50,7 +49,6 @@
{
OomPriorityManager::TabStats stats;
- stats.last_active = now;
stats.is_app = true;
stats.renderer_handle = kApp;
stats.child_process_host_id = kApp;
@@ -59,7 +57,6 @@
{
OomPriorityManager::TabStats stats;
- stats.last_active = now;
stats.is_playing_audio = true;
stats.renderer_handle = kPlayingAudio;
stats.child_process_host_id = kPlayingAudio;
@@ -101,7 +98,6 @@
{
OomPriorityManager::TabStats stats;
- stats.last_active = now;
stats.is_reloadable_ui = true;
stats.renderer_handle = kReloadableUI;
stats.child_process_host_id = kReloadableUI;
@@ -112,7 +108,6 @@
// we are actually sorting the array.
{
OomPriorityManager::TabStats stats;
- stats.last_active = now;
stats.is_selected = true;
stats.renderer_handle = kSelected;
stats.child_process_host_id = kSelected;
« no previous file with comments | « chrome/browser/chromeos/memory/oom_priority_manager.h ('k') | components/devtools_discovery/basic_target_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698