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

Issue 10800031: Remove details from BROWSER_CLOSING and BROWSER_CLOSED notifications. (Closed)

Created:
8 years, 5 months ago by benwells
Modified:
8 years, 5 months ago
CC:
chromium-reviews, robertshield, kkania, jeremya
Visibility:
Public.

Description

Remove details from BROWSER_CLOSING and BROWSER_CLOSED notifications. The details was a boolean indicating whether this is the last browser window closing. As part of this change the logic for saving pinned tabs has been changed to not use the boolean in the details, and has been updated to handle the case where a user exit or closing of the last window is cancelled by an onbeforeunload event. Also as part of this change, both the pinned tab and multi profile features have been updated to handle cases of the browser process not being closed due to background mode or (in the future) packaged apps, and then more browser windows being opened. BUG=None TEST=Test shutdown Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148281 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148741

Patch Set 1 #

Patch Set 2 : Handle pinned tabs #

Total comments: 3

Patch Set 3 : Updated logic / comment for pinned tabs #

Total comments: 2

Patch Set 4 : Restore pinned tab saving on window or tab open #

Patch Set 5 : Fixed automation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -62 lines) Patch
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_list_impl.cc View 1 chunk +1 line, -19 lines 0 comments Download
M chrome/browser/ui/tabs/pinned_tab_service.h View 1 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/tabs/pinned_tab_service.cc View 1 2 3 6 chunks +38 lines, -17 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 1 chunk +4 lines, -11 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
benwells
There are some problems with PyAuto I haven't looked at yet, but assuming they are ...
8 years, 5 months ago (2012-07-19 11:16:28 UTC) #1
sky
http://codereview.chromium.org/10800031/diff/8001/chrome/browser/ui/tabs/pinned_tab_service.cc File chrome/browser/ui/tabs/pinned_tab_service.cc (right): http://codereview.chromium.org/10800031/diff/8001/chrome/browser/ui/tabs/pinned_tab_service.cc#newcode51 chrome/browser/ui/tabs/pinned_tab_service.cc:51: // continues their session, or if the process is ...
8 years, 5 months ago (2012-07-19 16:31:27 UTC) #2
sail
profile/* LGTM!
8 years, 5 months ago (2012-07-19 16:41:29 UTC) #3
benwells
I can't reproduce the problems with pyauto tests locally, I think maybe it's noise or ...
8 years, 5 months ago (2012-07-20 01:41:56 UTC) #4
sky
http://codereview.chromium.org/10800031/diff/5003/chrome/browser/ui/tabs/pinned_tab_service.cc File chrome/browser/ui/tabs/pinned_tab_service.cc (right): http://codereview.chromium.org/10800031/diff/5003/chrome/browser/ui/tabs/pinned_tab_service.cc#newcode61 chrome/browser/ui/tabs/pinned_tab_service.cc:61: // over-writing the correct state. The problem with this, ...
8 years, 5 months ago (2012-07-20 16:06:40 UTC) #5
benwells
https://chromiumcodereview.appspot.com/10800031/diff/5003/chrome/browser/ui/tabs/pinned_tab_service.cc File chrome/browser/ui/tabs/pinned_tab_service.cc (right): https://chromiumcodereview.appspot.com/10800031/diff/5003/chrome/browser/ui/tabs/pinned_tab_service.cc#newcode61 chrome/browser/ui/tabs/pinned_tab_service.cc:61: // over-writing the correct state. On 2012/07/20 16:06:40, sky ...
8 years, 5 months ago (2012-07-23 01:22:12 UTC) #6
sky
LGTM
8 years, 5 months ago (2012-07-23 15:56:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10800031/7003
8 years, 5 months ago (2012-07-23 23:58:38 UTC) #8
commit-bot: I haz the power
Presubmit check for 10800031-7003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-07-23 23:58:46 UTC) #9
benwells
+ben for automation owners review background: i want to simplify shutdown so my poor, limited ...
8 years, 5 months ago (2012-07-24 00:23:11 UTC) #10
Ben Goodger (Google)
lgtm
8 years, 5 months ago (2012-07-24 15:58:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10800031/7003
8 years, 5 months ago (2012-07-25 00:39:31 UTC) #12
commit-bot: I haz the power
Change committed as 148281
8 years, 5 months ago (2012-07-25 02:32:23 UTC) #13
benwells
This change originally broke the performance ui tests so I reverted it. It's now fixed. ...
8 years, 5 months ago (2012-07-27 00:04:09 UTC) #14
Ben Goodger (Google)
lgtm
8 years, 5 months ago (2012-07-27 00:05:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10800031/23001
8 years, 5 months ago (2012-07-27 01:56:32 UTC) #16
commit-bot: I haz the power
Try job failure for 10800031-23001 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-27 04:09:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10800031/23001
8 years, 5 months ago (2012-07-27 05:51:18 UTC) #18
commit-bot: I haz the power
8 years, 5 months ago (2012-07-27 10:48:20 UTC) #19
Change committed as 148741

Powered by Google App Engine
This is Rietveld 408576698