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

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

Issue 165993008: Don't miss to call ContentView.onShow when lunching content shell and test shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « chrome/android/testshell/java/src/org/chromium/chrome/testshell/TabManager.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/java/src/org/chromium/content_shell/Shell.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/Shell.java b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
index 5e21dc0ac4cdd67c9bb745b8f5ecd9d3ec439619..5ac955f721336f1ce50364ada65d9e6e2264e1de 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/Shell.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
@@ -252,6 +252,7 @@ public class Shell extends LinearLayout {
private void initFromNativeTabContents(long nativeTabContents) {
mContentView = ContentView.newInstance(getContext(), nativeTabContents, mWindow);
mContentView.setContentViewClient(mContentViewClient);
+ if (getParent() != null) mContentView.onShow();
if (mContentView.getUrl() != null) mUrlTextView.setText(mContentView.getUrl());
((FrameLayout) findViewById(R.id.contentview_holder)).addView(mContentView,
new FrameLayout.LayoutParams(
« no previous file with comments | « chrome/android/testshell/java/src/org/chromium/chrome/testshell/TabManager.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698