diff options
author | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-14 04:24:36 +0000 |
---|---|---|
committer | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-14 04:24:36 +0000 |
commit | c429713c4b93a1b1f9106734fe4b88b336aef4ae (patch) | |
tree | 670e479e6aeedc5b76dfc601edbac9cf8bf3f7b0 /webkit/plugins | |
parent | a4f0875e43903beb5077c1ebd19d27f639ec4c3e (diff) | |
download | chromium_src-c429713c4b93a1b1f9106734fe4b88b336aef4ae.zip chromium_src-c429713c4b93a1b1f9106734fe4b88b336aef4ae.tar.gz chromium_src-c429713c4b93a1b1f9106734fe4b88b336aef4ae.tar.bz2 |
Check that GetInterface() is called on the main thread.
BUG=74087
TEST=none
Review URL: http://codereview.chromium.org/6826046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r-- | webkit/plugins/ppapi/plugin_module.cc | 3 |
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) |