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

Issue 8506036: Fix tab backgrounding on Linux / ChromeOS (Closed)

Created:
9 years, 1 month ago by DaveMoore
Modified:
9 years ago
CC:
chromium-reviews, brettw-cc_chromium.org, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix tab backgrounding This broke because an incompatible change was made to Process, and because there was no test that would catch it. I've fixed the underlying problem for both Linux and ChromeOS and made it testable. BUG=102726 TEST=Added new RenderProcessHostTest.Backgrounding Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112712

Patch Set 1 #

Patch Set 2 : Remove extra function #

Patch Set 3 : merge problems #

Patch Set 4 : Post Quit #

Patch Set 5 : remove new include #

Patch Set 6 : Log error if can't background #

Patch Set 7 : Fix the DPCHECK #

Total comments: 11

Patch Set 8 : Review issues #

Patch Set 9 : Review issues #

Patch Set 10 : Create empty task #

Patch Set 11 : Left in extra include #

Total comments: 6

Patch Set 12 : Use LazyInstance correctly #

Total comments: 2

Patch Set 13 : Add comment for ShowSingletonTab() #

Patch Set 14 : Updated license #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -106 lines) Patch
M base/process.h View 1 2 3 4 5 2 chunks +2 lines, -20 lines 0 comments Download
M base/process_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +92 lines, -85 lines 0 comments Download
M base/process_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -1 line 0 comments Download
M base/process_win.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_browsertest.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +62 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
DaveMoore
9 years ago (2011-11-28 20:51:49 UTC) #1
jam
I'm not an owner for base, and not familiar with this code, so I defer ...
9 years ago (2011-11-28 21:45:13 UTC) #2
DaveMoore
+brettw
9 years ago (2011-11-28 22:25:10 UTC) #3
willchan no longer on Chromium
I think you can avoid both the races and static initializers by using LazyInstance. http://codereview.chromium.org/8506036/diff/11001/base/process_linux.cc ...
9 years ago (2011-11-29 22:23:34 UTC) #4
DaveMoore
http://codereview.chromium.org/8506036/diff/11001/base/process_linux.cc File base/process_linux.cc (right): http://codereview.chromium.org/8506036/diff/11001/base/process_linux.cc#newcode24 base/process_linux.cc:24: const char kForeground[] = "/chrome_renderers/foreground"; Added todo() to refactor ...
9 years ago (2011-11-30 19:01:18 UTC) #5
DaveMoore
My try jobs revealed that it's not ok to pass base::Closure() to PostTaskAndReply(). You need ...
9 years ago (2011-11-30 22:49:51 UTC) #6
willchan no longer on Chromium
http://codereview.chromium.org/8506036/diff/22001/base/process_linux.cc File base/process_linux.cc (right): http://codereview.chromium.org/8506036/diff/22001/base/process_linux.cc#newcode43 base/process_linux.cc:43: base::Lock lock; Is this lock used? http://codereview.chromium.org/8506036/diff/22001/base/process_linux.cc#newcode47 base/process_linux.cc:47: cgroups_inited ...
9 years ago (2011-12-01 06:26:32 UTC) #7
DaveMoore
lgtm http://codereview.chromium.org/8506036/diff/22001/base/process_linux.cc File base/process_linux.cc (right): http://codereview.chromium.org/8506036/diff/22001/base/process_linux.cc#newcode43 base/process_linux.cc:43: base::Lock lock; I meant AutoLock, but it's gone ...
9 years ago (2011-12-01 22:14:17 UTC) #8
willchan no longer on Chromium
lgtm http://codereview.chromium.org/8506036/diff/26001/base/process_linux.cc File base/process_linux.cc (right): http://codereview.chromium.org/8506036/diff/26001/base/process_linux.cc#newcode71 base/process_linux.cc:71: if (file_util::ReadFileToString( Do we need to worry about ...
9 years ago (2011-12-01 22:26:03 UTC) #9
Ben Goodger (Google)
http://codereview.chromium.org/8506036/diff/26001/content/browser/renderer_host/render_process_host_browsertest.cc File content/browser/renderer_host/render_process_host_browsertest.cc (right): http://codereview.chromium.org/8506036/diff/26001/content/browser/renderer_host/render_process_host_browsertest.cc#newcode41 content/browser/renderer_host/render_process_host_browsertest.cc:41: browser()->ShowSingletonTab(page); Can you achieve this by using a different ...
9 years ago (2011-12-02 00:05:04 UTC) #10
Ben Goodger (Google)
LGTM for content.
9 years ago (2011-12-02 00:31:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davemoore@chromium.org/8506036/30001
9 years ago (2011-12-02 00:39:37 UTC) #12
commit-bot: I haz the power
9 years ago (2011-12-02 03:46:09 UTC) #13
Try job failure for 8506036-30001 (retry) (previous was lost) on win_rel for
step "browser_tests".
It's a second try, previously, step "browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698