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

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

Issue 7344009: Move the time conversion code to the PPAPI shared_impl directory and use it in (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 months 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_file_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_flash_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_flash_impl.cc (revision 92172)
+++ webkit/plugins/ppapi/ppb_flash_impl.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/time.h"
#include "googleurl/src/gurl.h"
#include "ppapi/c/private/ppb_flash.h"
+#include "ppapi/shared_impl/time_conversion.h"
#include "ppapi/thunk/enter.h"
#include "webkit/plugins/ppapi/common.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
@@ -17,9 +18,9 @@
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
#include "webkit/plugins/ppapi/ppb_url_request_info_impl.h"
#include "webkit/plugins/ppapi/resource_tracker.h"
-#include "webkit/plugins/ppapi/time_conversion.h"
#include "webkit/plugins/ppapi/var.h"
+using ppapi::PPTimeToTime;
using ppapi::thunk::EnterResource;
using ppapi::thunk::PPB_URLRequestInfo_API;
@@ -95,8 +96,7 @@
// 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));
+ return instance->delegate()->GetLocalTimeZoneOffset(PPTimeToTime(t));
}
PP_Var GetCommandLineArgs(PP_Module pp_module) {
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_file_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698