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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java

Issue 843883002: [Android] Fix a flicker in stopping Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using onWindowVisibilityChanged Created 5 years, 11 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: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
index 1dfc60a632494ad504ec9d34e4f5f0987841f1ea..bd22caaed8aca6b1be11185c06da8bbb85532107 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
@@ -78,6 +78,13 @@ public class ShellManager extends FrameLayout {
sStartup = false;
}
}
+
+ @Override
+ protected void onWindowHidden() {
David Trainor- moved to gerrit 2015/01/15 01:16:07 We should just use the other method IMO. Lets kee
Changwan Ryu 2015/01/15 01:51:34 Done.
+ if (mActiveShell == null) return;
+ ContentViewCore contentViewCore = mActiveShell.getContentViewCore();
+ if (contentViewCore != null) contentViewCore.onHide();
+ }
};
mContentViewRenderView.onNativeLibraryLoaded(window);
}

Powered by Google App Engine
This is Rietveld 408576698