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

Unified Diff: ppapi/proxy/ppb_network_monitor_private_proxy.cc

Issue 9937001: PPAPI: Refactor ppapi test callbacks to ease testing blocking callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: working locally... Created 8 years, 9 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 | ppapi/tests/test_case.h » ('j') | ppapi/tests/test_file_system.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_network_monitor_private_proxy.cc
diff --git a/ppapi/proxy/ppb_network_monitor_private_proxy.cc b/ppapi/proxy/ppb_network_monitor_private_proxy.cc
index 4fa2d6eec240fd16cd8c7ff12e8cbd5d5cd5a93c..e54f0ed4cdaea53ad39839ca8e56342ecc8d81af 100644
--- a/ppapi/proxy/ppb_network_monitor_private_proxy.cc
+++ b/ppapi/proxy/ppb_network_monitor_private_proxy.cc
@@ -98,9 +98,9 @@ PP_Resource PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
// here.
proxy->current_list_ = NULL;
} else if (proxy->current_list_.get()) {
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
+ MessageLoop::current()->PostTask(FROM_HERE, RunWhileLocked(base::Bind(
dmichael (off chromium) 2012/04/02 21:15:02 somewhat unrelated, but causes problems running th
bbudge 2012/04/04 19:03:00 Does it also cause problems in normal use? Is ther
dmichael (off chromium) 2012/04/04 19:50:47 Yes, but locking is not enabled yet, so RunWhileLo
&NetworkMonitor::OnNetworkListReceived,
- result->AsWeakPtr(), proxy->current_list_));
+ result->AsWeakPtr(), proxy->current_list_)));
}
return result.release()->GetReference();
« no previous file with comments | « no previous file | ppapi/tests/test_case.h » ('j') | ppapi/tests/test_file_system.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698