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

Issue 17571018: Reland fast tab closure behind a flag (Closed)

Created:
7 years, 6 months ago by jeremy
Modified:
7 years, 2 months ago
Reviewers:
Avi (use Gerrit), sky
CC:
chromium-reviews, tfarina, creis+watch_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

This CL is basically the same as https://codereview.chromium.org/11016023/ + https://codereview.chromium.org/17151010 except that the fast tab closure functionality is implemented behind a flag. The way the 2 UnloadControllers co-exist is oriented towards being able to quickly and easily rip out the old UnloadController when we have all bugs fixed with the new one. Original change description: Changes to closing contents with beforeunload/unload handlers: - Closing a single tab, run beforeunload (if needed), then detached the tab from tab strip and close it asynchronously (no ui). - Closing a window, run all beforeunload handlers (same as before), then detach all tabs with unload handlers. Close any remaining tabs and hide the browser window while waiting for the unload handlers to complete. The feature is currently implemented behind a flag - --enable-fast-unload BUG=142458, 156896 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209674

Patch Set 1 #

Patch Set 2 : Diff against original patch #

Total comments: 5

Patch Set 3 : Patch for landing #

Patch Set 4 : Rebased, 2nd attempt to land. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+977 lines, -17 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 9 chunks +40 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/ui/fast_unload_controller.h View 2 1 chunk +180 lines, -0 lines 0 comments Download
A chrome/browser/ui/fast_unload_controller.cc View 2 1 chunk +380 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/core_tab_helper.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/core_tab_helper.cc View 2 3 chunks +36 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/unload_browsertest.cc View 2 1 chunk +209 lines, -0 lines 1 comment Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A + chrome/test/data/fast_tab_close/no_listeners.html View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download
A chrome/test/data/fast_tab_close/unload_sets_cookie.html View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/test/data/fast_tab_close/unload_sleep_before_cookie.html View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jeremy
Changes VS previous reviewed CLs: * chrome/test/data/* - unchanged * unload_browser_test - unchanged, save for ...
7 years, 6 months ago (2013-06-25 10:50:50 UTC) #1
Avi (use Gerrit)
On 2013/06/25 10:50:50, jeremy wrote: > Changes VS previous reviewed CLs: > * chrome/test/data/* - ...
7 years, 6 months ago (2013-06-25 14:34:44 UTC) #2
sky
Could you make it so the first patch is the baseline and the second you're ...
7 years, 6 months ago (2013-06-25 16:00:22 UTC) #3
jeremy
Ready for another look, diff now based on reviewed patchset.
7 years, 5 months ago (2013-06-27 10:47:46 UTC) #4
sky
The diffs still weren't right. Anyway, LGTM with the following changes. https://codereview.chromium.org/17571018/diff/22001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): ...
7 years, 5 months ago (2013-06-27 16:13:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/17571018/44001
7 years, 5 months ago (2013-06-30 12:16:18 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/browser.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-01 07:17:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/17571018/63001
7 years, 5 months ago (2013-07-02 09:26:26 UTC) #8
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-02 09:34:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/17571018/63001
7 years, 5 months ago (2013-07-02 11:10:04 UTC) #10
commit-bot: I haz the power
Change committed as 209674
7 years, 5 months ago (2013-07-02 11:56:37 UTC) #11
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/17571018/diff/63001/chrome/browser/unload_browsertest.cc File chrome/browser/unload_browsertest.cc (right): https://chromiumcodereview.appspot.com/17571018/diff/63001/chrome/browser/unload_browsertest.cc#newcode501 chrome/browser/unload_browsertest.cc:501: content::NotificationService::AllSources()); You cannot use WindowedNotificationObserver like this. What is ...
7 years, 2 months ago (2013-10-11 17:58:07 UTC) #12
jeremy
Thank you very much for looking at this Avi! The plan is to get back ...
7 years, 2 months ago (2013-10-13 14:00:19 UTC) #13
Avi (use Gerrit)
7 years, 2 months ago (2013-10-13 16:29:47 UTC) #14
Message was sent while issue was closed.
I found it because it broke my conversion away from notifications. My fix is in
https://codereview.chromium.org/26277010 which I'm working on now. Ignore it; I
will adapt my code to whatever you write.

Powered by Google App Engine
This is Rietveld 408576698