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

Unified Diff: ppapi/thunk/ppb_talk_private_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_talk_private_thunk.cc
diff --git a/ppapi/thunk/ppb_talk_private_thunk.cc b/ppapi/thunk/ppb_talk_private_thunk.cc
index 6d2325de6eb11406d306df473feba70ef73274a7..2cc9da968b9131152a647627b7d925d7677dcea7 100644
--- a/ppapi/thunk/ppb_talk_private_thunk.cc
+++ b/ppapi/thunk/ppb_talk_private_thunk.cc
@@ -21,8 +21,7 @@ PP_Resource Create(PP_Instance instance) {
return enter.functions()->CreateTalk(instance);
}
-int32_t GetPermission(PP_Resource resource,
- PP_CompletionCallback callback) {
+int32_t GetPermission(PP_Resource resource, PP_CompletionCallback callback) {
EnterResource<PPB_Talk_Private_API> enter(resource, callback, true);
if (enter.failed())
return PP_ERROR_BADRESOURCE;
@@ -47,31 +46,22 @@ int32_t StartRemoting(PP_Resource resource,
EnterResource<PPB_Talk_Private_API> enter(resource, callback, true);
if (enter.failed())
return PP_ERROR_BADRESOURCE;
- return enter.SetResult(
- enter.object()->StartRemoting(event_callback, user_data,
- enter.callback()));
+ return enter.SetResult(enter.object()->StartRemoting(
+ event_callback, user_data, enter.callback()));
}
-int32_t StopRemoting(PP_Resource resource,
- PP_CompletionCallback callback) {
+int32_t StopRemoting(PP_Resource resource, PP_CompletionCallback callback) {
EnterResource<PPB_Talk_Private_API> enter(resource, callback, true);
if (enter.failed())
return PP_ERROR_BADRESOURCE;
- return enter.SetResult(
- enter.object()->StopRemoting(enter.callback()));
+ return enter.SetResult(enter.object()->StopRemoting(enter.callback()));
}
-const PPB_Talk_Private_1_0 g_ppb_talk_private_thunk_1_0 = {
- &Create,
- &GetPermission
-};
+const PPB_Talk_Private_1_0 g_ppb_talk_private_thunk_1_0 = {&Create,
+ &GetPermission};
const PPB_Talk_Private_2_0 g_ppb_talk_private_thunk_2_0 = {
- &Create,
- &RequestPermission,
- &StartRemoting,
- &StopRemoting
-};
+ &Create, &RequestPermission, &StartRemoting, &StopRemoting};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698