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

Unified Diff: content/renderer/pepper/message_channel.cc

Issue 596343003: PPAPI: Fix raymes's review comments I missed (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/message_channel.cc
diff --git a/content/renderer/pepper/message_channel.cc b/content/renderer/pepper/message_channel.cc
index df56988af09c8de1b2882f0e17abd4d835d72c1c..2ce6009fcc4370d29723c12e2117c33b8644f1b5 100644
--- a/content/renderer/pepper/message_channel.cc
+++ b/content/renderer/pepper/message_channel.cc
@@ -166,9 +166,9 @@ void MessageChannel::Start() {
if (dispatcher)
dispatcher->AddSyncMessageStatusObserver(this);
- // We can't drain the JS message queue directly
- // since we haven't finished initializing the PepperWebPluginImpl yet, so
- // the plugin isn't available in the DOM.
+ // We can't drain the JS message queue directly since we haven't finished
+ // initializing the PepperWebPluginImpl yet, so the plugin isn't available in
+ // the DOM.
DrainJSMessageQueueSoon();
plugin_message_queue_state_ = SEND_DIRECTLY;
@@ -209,6 +209,7 @@ void MessageChannel::BeginBlockOnSyncMessage() {
}
void MessageChannel::EndBlockOnSyncMessage() {
+ DCHECK_GT(blocking_message_depth_, 0);
--blocking_message_depth_;
if (!blocking_message_depth_)
DrainJSMessageQueueSoon();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698