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

Issue 2095413002: TabManagerDelegate: Better prioritize ARC processes. (Closed)

Created:
4 years, 5 months ago by cylee1
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), davemoore+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TabManagerDelegate: Better prioritize ARC processes. Add new fields "is_focused" and "last_active_time" in struct RunningAppProcessInfo of process.mojom so Chrome knows how to prioritize Android processes better. BUG=625851 TEST=minnie Committed: https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329 Cr-Commit-Position: refs/heads/master@{#407444}

Patch Set 1 #

Total comments: 18

Patch Set 2 : TabManagerDelegate: Better prioritize ARC processes. #

Total comments: 14

Patch Set 3 : Add new field is_focused in process.mojom. Handle review comments. #

Patch Set 4 : minor fixes #

Total comments: 45

Patch Set 5 : more review comment #

Total comments: 4

Patch Set 6 : more review commments.. #

Patch Set 7 : more review commments.. #

Total comments: 4

Patch Set 8 : final review comment? #

Patch Set 9 : revert to move assignment #

Patch Set 10 : sync to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -314 lines) Patch
M chrome/browser/chromeos/arc/arc_process.h View 1 2 3 4 3 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_process.cc View 1 2 3 4 1 chunk +16 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_process_service.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/memory/tab_manager.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos.h View 1 2 3 4 5 6 8 7 chunks +50 lines, -60 lines 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 9 chunks +123 lines, -110 lines 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc View 1 2 3 4 6 chunks +86 lines, -133 lines 0 comments Download
M components/arc/common/process.mojom View 1 2 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 44 (19 generated)
cylee1
4 years, 5 months ago (2016-06-27 16:04:54 UTC) #2
Luis Héctor Chávez
drive-by review of the .mojom change. https://codereview.chromium.org/2095413002/diff/1/components/arc/common/process.mojom File components/arc/common/process.mojom (right): https://codereview.chromium.org/2095413002/diff/1/components/arc/common/process.mojom#newcode77 components/arc/common/process.mojom:77: // This struct ...
4 years, 5 months ago (2016-06-27 16:18:07 UTC) #4
Yusuke Sato
https://codereview.chromium.org/2095413002/diff/1/chrome/browser/chromeos/arc/arc_process.h File chrome/browser/chromeos/arc/arc_process.h (right): https://codereview.chromium.org/2095413002/diff/1/chrome/browser/chromeos/arc/arc_process.h#newcode1 chrome/browser/chromeos/arc/arc_process.h:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 5 months ago (2016-06-27 16:40:51 UTC) #5
Georges Khalil
LGTM for chrome/browser/memory % nits. Code looks cleaner, nice! https://codereview.chromium.org/2095413002/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2095413002/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode565 chrome/browser/memory/tab_manager_delegate_chromeos.cc:565: ...
4 years, 5 months ago (2016-06-27 20:15:05 UTC) #6
rickyz (no longer on Chrome)
mojom lgtm
4 years, 5 months ago (2016-06-27 21:41:10 UTC) #7
Luis Héctor Chávez
https://codereview.chromium.org/2095413002/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode228 chrome/browser/memory/tab_manager_delegate_chromeos.h:228: if (app()->adj() != rhs.app()->adj()) You can replace all this ...
4 years, 5 months ago (2016-06-28 15:43:53 UTC) #8
cylee1
I want to on hold the CL for a moment because of Dianne Hackborn's comment ...
4 years, 5 months ago (2016-06-28 18:14:17 UTC) #9
cylee1
Hi reviewers, Android side CLs are done (submitting). In summary there're 2 fields "is_focused" and ...
4 years, 5 months ago (2016-07-14 19:15:25 UTC) #12
Luis Héctor Chávez
On 2016/07/14 19:15:25, cylee1 wrote: > Hi reviewers, > Android side CLs are done (submitting). ...
4 years, 5 months ago (2016-07-14 19:36:32 UTC) #15
Yusuke Sato
mostly style comments: https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/chromeos/arc/arc_process_service.cc File chrome/browser/chromeos/arc/arc_process_service.cc (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/chromeos/arc/arc_process_service.cc#newcode175 chrome/browser/chromeos/arc/arc_process_service.cc:175: entry->process_state, entry->is_focused, Have you run 'git ...
4 years, 5 months ago (2016-07-15 00:55:06 UTC) #18
Luis Héctor Chávez
more nits https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode129 chrome/browser/memory/tab_manager_delegate_chromeos.h:129: // Get the list of candidates to ...
4 years, 5 months ago (2016-07-15 01:29:24 UTC) #19
cylee1
https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/chromeos/arc/arc_process_service.cc File chrome/browser/chromeos/arc/arc_process_service.cc (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/chromeos/arc/arc_process_service.cc#newcode175 chrome/browser/chromeos/arc/arc_process_service.cc:175: entry->process_state, entry->is_focused, On 2016/07/15 00:55:05, Yusuke Sato wrote: > ...
4 years, 5 months ago (2016-07-15 17:31:14 UTC) #20
Luis Héctor Chávez
https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode34 chrome/browser/memory/tab_manager_delegate_chromeos.h:34: enum ProcessType { On 2016/07/15 17:31:13, cylee1 wrote: > ...
4 years, 5 months ago (2016-07-15 18:10:07 UTC) #21
Yusuke Sato
https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode252 chrome/browser/memory/tab_manager_delegate_chromeos.h:252: ProcessType GetProcessType() { On 2016/07/15 18:10:06, Luis Héctor Chávez ...
4 years, 5 months ago (2016-07-19 01:31:36 UTC) #22
cylee1
https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode34 chrome/browser/memory/tab_manager_delegate_chromeos.h:34: enum ProcessType { On 2016/07/15 18:10:06, Luis Héctor Chávez ...
4 years, 5 months ago (2016-07-20 17:57:53 UTC) #23
cylee1
ping Luis, Yusuke is OOO, could you approve the CL if you think it's done? ...
4 years, 5 months ago (2016-07-21 19:34:04 UTC) #24
Luis Héctor Chávez
lgtm with nits https://codereview.chromium.org/2095413002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2095413002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode88 chrome/browser/memory/tab_manager_delegate_chromeos.cc:88: os << "FOCUSED_APP/FOCUSED_TAB"; style nit: having ...
4 years, 5 months ago (2016-07-22 03:01:43 UTC) #25
cylee1
https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode271 chrome/browser/memory/tab_manager_delegate_chromeos.h:271: }; On 2016/07/20 17:57:53, cylee1 wrote: > On 2016/07/15 ...
4 years, 5 months ago (2016-07-22 22:18:43 UTC) #26
Luis Héctor Chávez
https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode271 chrome/browser/memory/tab_manager_delegate_chromeos.h:271: }; On 2016/07/22 22:18:43, cylee1 wrote: > On 2016/07/20 ...
4 years, 5 months ago (2016-07-22 22:30:32 UTC) #27
cylee1
https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h File chrome/browser/memory/tab_manager_delegate_chromeos.h (right): https://codereview.chromium.org/2095413002/diff/60001/chrome/browser/memory/tab_manager_delegate_chromeos.h#newcode271 chrome/browser/memory/tab_manager_delegate_chromeos.h:271: }; On 2016/07/22 22:30:31, Luis Héctor Chávez wrote: > ...
4 years, 5 months ago (2016-07-22 23:14:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2095413002/160001
4 years, 4 months ago (2016-07-25 08:29:06 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/40591) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-07-25 08:30:45 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2095413002/180001
4 years, 4 months ago (2016-07-25 09:51:44 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-07-25 10:28:45 UTC) #42
commit-bot: I haz the power
4 years, 4 months ago (2016-07-25 10:30:15 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c2e58df8d48e216450dd83af783a3e5d97a6e329
Cr-Commit-Position: refs/heads/master@{#407444}

Powered by Google App Engine
This is Rietveld 408576698