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

Issue 1633021: Detect new instance of the browser when running in the background in persiste... (Closed)

Created:
10 years, 8 months ago by prasadt_google
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Detect new instance of the browser when running in the background in persistent mode, shutdown and restart the new instance. This is already done for Windows, this CL enables the functionality for Linux. We don't yet have a unit test for this. Local testing is done by: 1) Reducing the timer to 30 seconds. 2) Changing BrowserList::IsInPersistentMode to return true. 3) Setting BrowserProcessImpl::autoupdate_timer_ to 30 seconds interval. 4) Running "touch" command on chrome exe to pretend there is an update. BUG=40975 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46023

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 14

Patch Set 5 : '' #

Total comments: 8

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 10

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 2

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -42 lines) Patch
M chrome/app/chrome_exe_main.cc View 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_exe_main_gtk.cc View 9 10 11 2 chunks +8 lines, -1 line 0 comments Download
M chrome/app/client_util.h View 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/app/client_util.cc View 11 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +26 lines, -17 lines 0 comments Download
M chrome/browser/first_run.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +33 lines, -6 lines 0 comments Download
M chrome/browser/first_run_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +46 lines, -0 lines 0 comments Download
M chrome/browser/first_run_win.cc View 7 8 9 10 11 3 chunks +14 lines, -1 line 0 comments Download
M chrome/installer/util/google_update_constants.h View 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/google_update_constants.cc View 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Andrew T Wilson (Slow)
Sorry this took me so long to get to - I usually try to turn ...
10 years, 8 months ago (2010-04-21 05:22:40 UTC) #1
prasadt_google
Thanks for the review. Addressed all feedback. http://codereview.chromium.org/1633021/diff/21002/31006 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/1633021/diff/21002/31006#newcode1172 chrome/browser/browser_main.cc:1172: #if defined(OS_WIN) ...
10 years, 8 months ago (2010-04-21 21:42:33 UTC) #2
Andrew T Wilson (Slow)
LGTM, but I've added Lei to the reviewer list, as I'd like someone more familiar ...
10 years, 8 months ago (2010-04-21 23:50:41 UTC) #3
Lei Zhang
I'm trying out this patch. Meanwhile, I have the following nits. http://codereview.chromium.org/1633021/diff/40001/41004 File chrome/browser/browser_process_impl.cc (right): ...
10 years, 8 months ago (2010-04-22 00:57:53 UTC) #4
prasadt_google
Thanks for the review. http://codereview.chromium.org/1633021/diff/40001/41004 File chrome/browser/browser_process_impl.cc (right): http://codereview.chromium.org/1633021/diff/40001/41004#newcode70 chrome/browser/browser_process_impl.cc:70: static const int kUpdateCheckInvervalHours = ...
10 years, 8 months ago (2010-04-22 01:05:44 UTC) #5
Lei Zhang
+matt http://codereview.chromium.org/1633021/diff/10002/14004 File chrome/browser/first_run_gtk.cc (right): http://codereview.chromium.org/1633021/diff/10002/14004#newcode115 chrome/browser/first_run_gtk.cc:115: return base::LaunchApp(command_line, false, false, NULL); I don't like ...
10 years, 8 months ago (2010-04-22 01:20:37 UTC) #6
Andrew T Wilson (Slow)
On 2010/04/22 01:20:37, Lei Zhang wrote: > I don't like this. Simultaneously launching Chrome while ...
10 years, 8 months ago (2010-04-22 17:44:28 UTC) #7
prasadt_google
On 2010/04/22 17:44:28, Andrew T Wilson wrote: > On 2010/04/22 01:20:37, Lei Zhang wrote: > ...
10 years, 8 months ago (2010-04-22 18:05:35 UTC) #8
Lei Zhang
FWIW, I think the process singleton code mostly guards against races between two chrome processes ...
10 years, 8 months ago (2010-04-22 20:58:45 UTC) #9
prasadt_google
On 2010/04/22 20:58:45, Lei Zhang wrote: > FWIW, I think the process singleton code mostly ...
10 years, 8 months ago (2010-04-22 21:12:29 UTC) #10
prasadt_google
On 2010/04/22 21:12:29, prasadt wrote: > On 2010/04/22 20:58:45, Lei Zhang wrote: > > FWIW, ...
10 years, 8 months ago (2010-04-23 23:59:50 UTC) #11
Andrew T Wilson (Slow)
This change makes sense to me - I'll try it out locally to see if ...
10 years, 8 months ago (2010-04-24 00:53:31 UTC) #12
Lei Zhang
http://codereview.chromium.org/1633021/diff/38003/41016 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/1633021/diff/38003/41016#newcode1243 chrome/browser/browser_main.cc:1243: Upgrade::RelaunchChromeBrowserWithNewCommandLine(); This is definitely a better place to relaunch ...
10 years, 8 months ago (2010-04-24 03:50:43 UTC) #13
Andrew T Wilson (Slow)
FWIW, I ran with this patch (changed to poll for updates every 6 seconds instead ...
10 years, 8 months ago (2010-04-27 00:47:26 UTC) #14
Lei Zhang
On 2010/04/27 00:47:26, Andrew T Wilson wrote: > FWIW, I ran with this patch (changed ...
10 years, 8 months ago (2010-04-27 00:51:35 UTC) #15
Andrew T Wilson (Slow)
On 2010/04/27 00:51:35, Lei Zhang wrote: > Agreed. This patch is much better. I'm just ...
10 years, 7 months ago (2010-04-27 16:31:59 UTC) #16
prasadt_google
Please note that I uploaded one too many times. I thought it failed to upload ...
10 years, 7 months ago (2010-04-28 21:13:25 UTC) #17
Lei Zhang
Patch set 10 looks ok, but it didn't compile on the Windows try bot.
10 years, 7 months ago (2010-04-29 00:47:30 UTC) #18
prasadt_google
On 2010/04/29 00:47:30, Lei Zhang wrote: > Patch set 10 looks ok, but it didn't ...
10 years, 7 months ago (2010-04-29 01:48:24 UTC) #19
prasadt_google
On 2010/04/29 01:48:24, prasadt wrote: > On 2010/04/29 00:47:30, Lei Zhang wrote: > > Patch ...
10 years, 7 months ago (2010-04-29 21:03:11 UTC) #20
Lei Zhang
On 2010/04/29 21:03:11, prasadt wrote: > Done fixing the Windows issue. Please take a look. ...
10 years, 7 months ago (2010-04-29 23:27:29 UTC) #21
Andrew T Wilson (Slow)
LGTM, with one tiny comment. http://codereview.chromium.org/1633021/diff/73002/83014 File chrome/app/client_util.h (right): http://codereview.chromium.org/1633021/diff/73002/83014#newcode33 chrome/app/client_util.h:33: void RelaunchChromeBrowserWithNewCommandLineIfNeeded(); Add a ...
10 years, 7 months ago (2010-04-29 23:37:00 UTC) #22
prasadt_google
10 years, 7 months ago (2010-04-30 00:48:53 UTC) #23
http://codereview.chromium.org/1633021/diff/73002/83014
File chrome/app/client_util.h (right):

http://codereview.chromium.org/1633021/diff/73002/83014#newcode33
chrome/app/client_util.h:33: void
RelaunchChromeBrowserWithNewCommandLineIfNeeded();
On 2010/04/29 23:37:00, Andrew T Wilson wrote:
> Add a comment describing what this does/when it's used.

Done.

Powered by Google App Engine
This is Rietveld 408576698