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

Issue 601293002: Chromecast: call ClosePage(), wait 50ms before deleting WebContents (Closed)

Created:
6 years, 2 months ago by gunsch
Modified:
6 years, 2 months ago
Reviewers:
lcwu1, byungchul
CC:
chromium-reviews, lcwu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Chromecast: call ClosePage(), wait 50ms before deleting WebContents. Without this, Chromecast apps will not have time to handle window.unload events when user switches to a new app. R=lcwu@chromium.org,byungchul@chromium.org BUG=400876 Committed: https://crrev.com/cb10249278aacc078e0e95936cf68da1d95b64a3 Cr-Commit-Position: refs/heads/master@{#296811}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : comment nit, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -11 lines) Patch
M chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M chromecast/shell/browser/android/cast_window_android.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M chromecast/shell/browser/android/cast_window_android.cc View 1 5 chunks +42 lines, -4 lines 0 comments Download
M chromecast/shell/browser/android/cast_window_manager.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chromecast/shell/browser/cast_browser_context.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
gunsch
6 years, 2 months ago (2014-09-25 17:07:00 UTC) #1
lcwu1
The commit message is not entirely accurate. We should say "Call ClosePage to deliver windlow.unload ...
6 years, 2 months ago (2014-09-25 19:10:55 UTC) #2
gunsch
https://codereview.chromium.org/601293002/diff/1/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java File chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java (right): https://codereview.chromium.org/601293002/diff/1/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java#newcode101 chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java:101: * @param gracefully Whether or not to give a ...
6 years, 2 months ago (2014-09-25 19:18:15 UTC) #3
byungchul
lgtm
6 years, 2 months ago (2014-09-25 20:07:36 UTC) #4
lcwu1
LGTM with a nit in comment. https://codereview.chromium.org/601293002/diff/20001/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java File chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java (right): https://codereview.chromium.org/601293002/diff/20001/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java#newcode101 chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java:101: * @param gracefully ...
6 years, 2 months ago (2014-09-25 20:22:51 UTC) #5
gunsch
https://codereview.chromium.org/601293002/diff/20001/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java File chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java (right): https://codereview.chromium.org/601293002/diff/20001/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java#newcode101 chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java:101: * @param gracefully Whether or not to call RWH::ClosePage ...
6 years, 2 months ago (2014-09-25 20:48:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/601293002/40001
6 years, 2 months ago (2014-09-25 20:49:52 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as bd3d7913a979dce4bbca672cb17b600ca3372f8b
6 years, 2 months ago (2014-09-25 22:40:12 UTC) #9
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 22:40:47 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cb10249278aacc078e0e95936cf68da1d95b64a3
Cr-Commit-Position: refs/heads/master@{#296811}

Powered by Google App Engine
This is Rietveld 408576698