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

Unified Diff: ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks Created 6 years, 8 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
Index: ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc
diff --git a/ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc b/ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc
index 11962e41edd6d584d85fa3f8839b41405928f296..a1a9d26dc0e46aa113541a14aea6097093428cd3 100644
--- a/ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc
+++ b/ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc
@@ -13,12 +13,9 @@ namespace thunk {
namespace {
-bool CreateThreadAdapterForInstance(PP_Instance instance) {
- return true;
-}
+bool CreateThreadAdapterForInstance(PP_Instance instance) { return true; }
-void ClearThreadAdapterForInstance(PP_Instance instance) {
-}
+void ClearThreadAdapterForInstance(PP_Instance instance) {}
int32_t OpenFile(PP_Instance instance,
const char* path,
@@ -71,8 +68,7 @@ int32_t GetDirContents(PP_Instance instance,
return enter.functions()->GetDirContents(instance, path, contents);
}
-void FreeDirContents(PP_Instance instance,
- PP_DirContents_Dev* contents) {
+void FreeDirContents(PP_Instance instance, PP_DirContents_Dev* contents) {
EnterInstanceAPI<PPB_Flash_File_API> enter(instance);
if (enter.succeeded())
enter.functions()->FreeDirContents(instance, contents);
@@ -88,22 +84,16 @@ int32_t CreateTemporaryFile(PP_Instance instance, PP_FileHandle* file) {
}
const PPB_Flash_File_ModuleLocal_3_0 g_ppb_flash_file_modulelocal_thunk_3_0 = {
- &CreateThreadAdapterForInstance,
- &ClearThreadAdapterForInstance,
- &OpenFile,
- &RenameFile,
- &DeleteFileOrDir,
- &CreateDir,
- &QueryFile,
- &GetDirContents,
- &FreeDirContents,
- &CreateTemporaryFile
-};
+ &CreateThreadAdapterForInstance, &ClearThreadAdapterForInstance,
+ &OpenFile, &RenameFile,
+ &DeleteFileOrDir, &CreateDir,
+ &QueryFile, &GetDirContents,
+ &FreeDirContents, &CreateTemporaryFile};
} // namespace
const PPB_Flash_File_ModuleLocal_3_0*
- GetPPB_Flash_File_ModuleLocal_3_0_Thunk() {
+GetPPB_Flash_File_ModuleLocal_3_0_Thunk() {
return &g_ppb_flash_file_modulelocal_thunk_3_0;
}

Powered by Google App Engine
This is Rietveld 408576698