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

Issue 8116015: Now closes existing background contents if app opens a new one. (Closed)

Created:
9 years, 2 months ago by Andrew T Wilson (Slow)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Avi (use Gerrit), Erik does not do reviews, Paweł Hajdan Jr., mihaip+watch_chromium.org, Aaron Boodman, brettw-cc_chromium.org
Visibility:
Public.

Description

Now closes existing background contents if app opens a new one. Work around race conditions on startup where an app page creates a background page while the BackgroundContentsService is also opening the page. We now close the existing page instead of opening one of the pages up in a visible tab. Also added a new browser test to verify this functionality. BUG=98046 TEST=Added new browser_test: AppBackgroundPageApiTest.OpenTwoBackgroundPages. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104228

Patch Set 1 #

Patch Set 2 : Added missing test files. #

Patch Set 3 : Fixed a few comments. #

Total comments: 2

Patch Set 4 : Fixed comment. #

Total comments: 4

Patch Set 5 : More review feedback. #

Patch Set 6 : More review feedback, fixed typo in test manifest.json #

Patch Set 7 : Fixed presubmit error (added license header to js file) #

Messages

Total messages: 16 (0 generated)
Andrew T Wilson (Slow)
Please take a look.
9 years, 2 months ago (2011-10-04 01:30:03 UTC) #1
brettw
Am I the best reviewer for this? I don't even remember what background pages are...
9 years, 2 months ago (2011-10-04 05:32:43 UTC) #2
Andrew T Wilson (Slow)
I've added Rafael who has more insight into background contents and is probably a better ...
9 years, 2 months ago (2011-10-04 17:23:24 UTC) #3
rafaelw
I did an overall review and the code mostly looks fine. I'm concerned about the ...
9 years, 2 months ago (2011-10-04 20:10:28 UTC) #4
Andrew T Wilson (Slow)
On 2011/10/04 20:10:28, rafaelw wrote: > I did an overall review and the code mostly ...
9 years, 2 months ago (2011-10-04 21:08:13 UTC) #5
Andrew T Wilson (Slow)
Please take another look. http://codereview.chromium.org/8116015/diff/4001/chrome/browser/background/background_contents_service.cc File chrome/browser/background/background_contents_service.cc (right): http://codereview.chromium.org/8116015/diff/4001/chrome/browser/background/background_contents_service.cc#newcode362 chrome/browser/background/background_contents_service.cc:362: continue; On 2011/10/04 20:10:28, rafaelw ...
9 years, 2 months ago (2011-10-04 21:12:05 UTC) #6
rafaelw
lgtm
9 years, 2 months ago (2011-10-04 21:56:22 UTC) #7
brettw
http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc File chrome/browser/tab_contents/render_view_host_delegate_helper.cc (right): http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc#newcode128 chrome/browser/tab_contents/render_view_host_delegate_helper.cc:128: DLOG(WARNING) << "Closing existing BackgroundContents for " << opener_url; ...
9 years, 2 months ago (2011-10-04 22:03:47 UTC) #8
Andrew T Wilson (Slow)
http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc File chrome/browser/tab_contents/render_view_host_delegate_helper.cc (right): http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc#newcode128 chrome/browser/tab_contents/render_view_host_delegate_helper.cc:128: DLOG(WARNING) << "Closing existing BackgroundContents for " << opener_url; ...
9 years, 2 months ago (2011-10-05 19:45:58 UTC) #9
brettw
http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc File chrome/browser/tab_contents/render_view_host_delegate_helper.cc (right): http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc#newcode128 chrome/browser/tab_contents/render_view_host_delegate_helper.cc:128: DLOG(WARNING) << "Closing existing BackgroundContents for " << opener_url; ...
9 years, 2 months ago (2011-10-05 20:03:33 UTC) #10
Andrew T Wilson (Slow)
http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc File chrome/browser/tab_contents/render_view_host_delegate_helper.cc (right): http://codereview.chromium.org/8116015/diff/9001/chrome/browser/tab_contents/render_view_host_delegate_helper.cc#newcode128 chrome/browser/tab_contents/render_view_host_delegate_helper.cc:128: DLOG(WARNING) << "Closing existing BackgroundContents for " << opener_url; ...
9 years, 2 months ago (2011-10-05 20:49:13 UTC) #11
brettw
lgtm
9 years, 2 months ago (2011-10-05 22:39:56 UTC) #12
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/8116015/18001
9 years, 2 months ago (2011-10-05 23:16:50 UTC) #13
commit-bot: I haz the power
Presubmit check for 8116015-18001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-10-05 23:16:54 UTC) #14
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/8116015/18002
9 years, 2 months ago (2011-10-06 00:30:52 UTC) #15
commit-bot: I haz the power
9 years, 2 months ago (2011-10-06 02:16:14 UTC) #16
Change committed as 104228

Powered by Google App Engine
This is Rietveld 408576698