summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_globals.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-22 23:05:03 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-22 23:05:03 +0000
commitd5f5dc1eb49e5daa5c102d356697623b6277e091 (patch)
tree026c0f084526cf3cb3caec94542c67f1ee0d57ac /ppapi/proxy/plugin_globals.h
parentecd887823ea735db045236bda63c1984f9f3af1e (diff)
downloadchromium_src-d5f5dc1eb49e5daa5c102d356697623b6277e091.zip
chromium_src-d5f5dc1eb49e5daa5c102d356697623b6277e091.tar.gz
chromium_src-d5f5dc1eb49e5daa5c102d356697623b6277e091.tar.bz2
Verify we're not getting any plugin messages on the host side of the proxy.
If we start getting plugin messages on the host side, we could get confused. BUG=159708 Review URL: https://codereview.chromium.org/12051024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/plugin_globals.h')
-rw-r--r--ppapi/proxy/plugin_globals.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ppapi/proxy/plugin_globals.h b/ppapi/proxy/plugin_globals.h
index 9b50295..4da6d5f 100644
--- a/ppapi/proxy/plugin_globals.h
+++ b/ppapi/proxy/plugin_globals.h
@@ -37,7 +37,9 @@ class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals {
// PpapiGlobals::Get() when possible. Use this only when you need some
// plugin-specific functionality.
inline static PluginGlobals* Get() {
- DCHECK(PpapiGlobals::Get()->IsPluginGlobals());
+ // Explicitly crash if this is the wrong process type, we want to get
+ // crash reports.
+ CHECK(PpapiGlobals::Get()->IsPluginGlobals());
return static_cast<PluginGlobals*>(PpapiGlobals::Get());
}