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

Unified Diff: chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java

Issue 601293002: Chromecast: call ClosePage(), wait 50ms before deleting WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java
diff --git a/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java b/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java
index e88bad3e41ab6dda31dfcad2b2d8bce5cc4aa5de..e3161f644f461140ef08ed57c8fdcab8864f31c0 100644
--- a/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java
+++ b/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java
@@ -120,7 +120,7 @@ public class CastShellActivity extends Activity {
unregisterBroadcastReceiver();
if (mNativeCastWindow != 0) {
- mCastWindowManager.stopCastWindow(mNativeCastWindow);
+ mCastWindowManager.stopCastWindow(mNativeCastWindow, false /* gracefully */);
mNativeCastWindow = 0;
}
}
@@ -176,7 +176,7 @@ public class CastShellActivity extends Activity {
protected void finishGracefully() {
if (mNativeCastWindow != 0) {
- mCastWindowManager.stopCastWindow(mNativeCastWindow);
+ mCastWindowManager.stopCastWindow(mNativeCastWindow, true /* gracefully */);
mNativeCastWindow = 0;
}
}

Powered by Google App Engine
This is Rietveld 408576698