Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: webkit/plugins/ppapi/ppb_flash_impl.cc

Issue 11516020: Refactor PPB_Flash GetLocalTimeZoneOffset to the new PPAPI resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_flash_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_flash_impl.cc b/webkit/plugins/ppapi/ppb_flash_impl.cc
index f27847345d56a8113ba83d5dcf0953f46268ad74..43e9ba22bb73de76af8f634b6a4e283adf49cce7 100644
--- a/webkit/plugins/ppapi/ppb_flash_impl.cc
+++ b/webkit/plugins/ppapi/ppb_flash_impl.cc
@@ -168,21 +168,6 @@ int32_t PPB_Flash_Impl::Navigate(PP_Instance instance,
return instance_->Navigate(data, target, PP_ToBool(from_user_action));
}
-double PPB_Flash_Impl::GetLocalTimeZoneOffset(PP_Instance instance,
- PP_Time t) {
- // Evil hack. The time code handles exact "0" values as special, and produces
- // a "null" Time object. This will represent some date hundreds of years ago
- // and will give us funny results at 1970 (there are some tests where this
- // comes up, but it shouldn't happen in real life). To work around this
- // special handling, we just need to give it some nonzero value.
- if (t == 0.0)
- t = 0.0000000001;
-
- // We can't do the conversion here because on Linux, the localtime calls
- // require filesystem access prohibited by the sandbox.
- return instance_->delegate()->GetLocalTimeZoneOffset(PPTimeToTime(t));
-}
-
PP_Bool PPB_Flash_Impl::IsRectTopmost(PP_Instance instance,
const PP_Rect* rect) {
return PP_FromBool(instance_->IsRectTopmost(
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698