public void onReadyToRender() { mDelegate.installWebContentsObserver(getContentViewCore()); for (Runnable task : pendingTasks) { task.run(); } pendingTasks.clear(); }
private void postTask(Runnable task) { ContentViewCore contentView = this.getContentViewCore(); if (contentView != null) { task.run(); } else { pendingTasks.add(task); } }