diff options
author | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 18:03:25 +0000 |
---|---|---|
committer | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-26 18:03:25 +0000 |
commit | 86e37545e669e295a4a18041a6330138896c2420 (patch) | |
tree | f62398a08af5f5a52c82432d96464b0d963030f5 | |
parent | ad6219dabf2d3aa0aae366cbfb0446b3b170da6c (diff) | |
download | chromium_src-86e37545e669e295a4a18041a6330138896c2420.zip chromium_src-86e37545e669e295a4a18041a6330138896c2420.tar.gz chromium_src-86e37545e669e295a4a18041a6330138896c2420.tar.bz2 |
This time really fix m21 branch after merging 148484
TBR=viettrungluu
Review URL: https://chromiumcodereview.appspot.com/10831033
git-svn-id: svn://svn.chromium.org/chrome/branches/1180/src@148585 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/plugins/ppapi/ppapi_plugin_instance.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc index d51216d..1c3bb58 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc @@ -106,7 +106,6 @@ using ppapi::PpapiGlobals; using ppapi::PPB_View_Shared; using ppapi::ScopedPPResource; using ppapi::StringVar; -using ppapi::TrackedCallback; using ppapi::thunk::EnterResourceNoLock; using ppapi::thunk::PPB_Buffer_API; using ppapi::thunk::PPB_Graphics2D_API; @@ -1334,12 +1333,12 @@ void PluginInstance::FlashSetFullscreen(bool fullscreen, bool delay_report) { } void PluginInstance::UpdateFlashFullscreenState(bool flash_fullscreen) { - bool is_mouselock_pending = TrackedCallback::IsPending(lock_mouse_callback_); + bool is_mouselock_pending = !!lock_mouse_callback_.func; if (flash_fullscreen == flash_fullscreen_) { // Manually clear callback when fullscreen fails with mouselock pending. if (!flash_fullscreen && is_mouselock_pending) - TrackedCallback::ClearAndRun(&lock_mouse_callback_, PP_ERROR_FAILED); + PP_RunAndClearCompletionCallback(&lock_mouse_callback_, PP_ERROR_FAILED); return; } @@ -1347,7 +1346,7 @@ void PluginInstance::UpdateFlashFullscreenState(bool flash_fullscreen) { flash_fullscreen_ = flash_fullscreen; if (is_mouselock_pending && !delegate()->IsMouseLocked(this)) { if (!delegate()->LockMouse(this)) - TrackedCallback::ClearAndRun(&lock_mouse_callback_, PP_ERROR_FAILED); + PP_RunAndClearCompletionCallback(&lock_mouse_callback_, PP_ERROR_FAILED); } if (PluginHasFocus() != old_plugin_focus) |