summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/plugin_module.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/plugin_module.cc')
-rw-r--r--webkit/plugins/ppapi/plugin_module.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc
index 6fc7f7c..5ad10db 100644
--- a/webkit/plugins/ppapi/plugin_module.cc
+++ b/webkit/plugins/ppapi/plugin_module.cc
@@ -219,6 +219,9 @@ const PPB_Testing_Dev testing_interface = {
// GetInterface ----------------------------------------------------------------
const void* GetInterface(const char* name) {
+ // All interfaces should be used on the main thread.
+ DCHECK(IsMainThread());
+
// Please keep alphabetized by interface macro name with "special" stuff at
// the bottom.
if (strcmp(name, PPB_AUDIO_CONFIG_INTERFACE) == 0)