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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 11823027: [Android WebView] Implement the capture picture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes in native/Java AwContents to support SW rendering without platform functions (tests). Created 7 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/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index d3bdd8067714480170ce788a3518f9027fd6d7f7..ff61a0a28bb3c7e522a566cf704828498f565898 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1002,7 +1002,7 @@ void RenderProcessHostImpl::ClearTransportDIBCache() {
bool RenderProcessHostImpl::Send(IPC::Message* msg) {
if (!channel_.get()) {
- if (!is_initialized_) {
+ if (!is_initialized_ && !msg->is_sync()) {
queued_messages_.push(msg);
return true;
} else {
@@ -1012,6 +1012,10 @@ bool RenderProcessHostImpl::Send(IPC::Message* msg) {
}
if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) {
+ if (msg->is_sync()) {
+ delete msg;
+ return false;
+ }
queued_messages_.push(msg);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698