From 298a9a8041e7e80b1b41664303e0e703b3bf0d43 Mon Sep 17 00:00:00 2001 From: "cpu@chromium.org" Date: Thu, 12 May 2011 16:47:25 +0000 Subject: 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 --- ppapi/example/example.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ppapi/example/example.cc') 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"); -- cgit v1.1