diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 16:47:25 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 16:47:25 +0000 |
commit | 298a9a8041e7e80b1b41664303e0e703b3bf0d43 (patch) | |
tree | 8ff14823a57cd66eebd1b14c9aa2b640e577e35b /ppapi/example | |
parent | ce91d375bed9c9df9b5f7fdac5235a44d5ec6c9e (diff) | |
download | chromium_src-298a9a8041e7e80b1b41664303e0e703b3bf0d43.zip chromium_src-298a9a8041e7e80b1b41664303e0e703b3bf0d43.tar.gz chromium_src-298a9a8041e7e80b1b41664303e0e703b3bf0d43.tar.bz2 |
Workarround so that the example plugin does not crash
The pp:VarPrivate is broken in out-of-process mode
BUG=82356
TEST=none
Review URL: http://codereview.chromium.org/7016008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/example')
-rw-r--r-- | ppapi/example/example.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc index f3965f2..5dc3842 100644 --- a/ppapi/example/example.cc +++ b/ppapi/example/example.cc @@ -303,6 +303,8 @@ int gettimeofday(struct timeval *tv, struct timezone*) { void UpdateFps() { pp::VarPrivate window = GetWindowObject(); + if (window.is_undefined()) + return; pp::VarPrivate doc = window.GetProperty("document"); pp::VarPrivate fps = doc.Call("getElementById", "fps"); |