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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc

Issue 9253011: Pepper SRPC proxy style and type nits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad license to pass presubmit check Created 8 years, 11 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 | « no previous file | ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_rpc_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc
index b541b1fe285996779f4ab15e3475b4ca3d2c8e64..883331eaa6eddb7035e019779d3644c9f537b978 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_config_rpc_server.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
@@ -39,7 +39,7 @@ void PpbAudioConfigRpcServer::PPB_AudioConfig_CreateStereo16Bit(
*resource = audio->CreateStereo16Bit(
instance, static_cast<PP_AudioSampleRate>(sample_rate),
sample_frame_count);
- DebugPrintf("PPB_AudioConfig::CreateStereo16Bit: resource=%"NACL_PRIu32"\n",
+ DebugPrintf("PPB_AudioConfig::CreateStereo16Bit: resource=%"NACL_PRId32"\n",
*resource);
rpc->result = NACL_SRPC_RESULT_OK;
}
@@ -60,7 +60,7 @@ void PpbAudioConfigRpcServer::PPB_AudioConfig_RecommendSampleFrameCount(
static_cast<PP_AudioSampleRate>(sample_rate),
request_sample_frame_count);
DebugPrintf("PPB_AudioConfig::RecommendSampleFrameCount: "
- "sample_frame_count=%"NACL_PRIu32"\n", *sample_frame_count);
+ "sample_frame_count=%"NACL_PRId32"\n", *sample_frame_count);
rpc->result = NACL_SRPC_RESULT_OK;
}
@@ -76,8 +76,8 @@ void PpbAudioConfigRpcServer::PPB_AudioConfig_IsAudioConfig(
return;
}
PP_Bool pp_success = audio->IsAudioConfig(resource);
- DebugPrintf("PPB_AudioConfig::IsAudioConfig: pp_success=%d\n", pp_success);
- *success = (pp_success == PP_TRUE);
+ *success = PP_ToBool(pp_success);
+ DebugPrintf("PPB_AudioConfig::IsAudioConfig: success=%d\n", *success);
rpc->result = NACL_SRPC_RESULT_OK;
}
@@ -99,7 +99,7 @@ void PpbAudioConfigRpcServer::PPB_AudioConfig_GetSampleRate(
return;
}
*sample_rate = audio->GetSampleRate(resource);
- DebugPrintf("PPB_AudioConfig::GetSampleRate: pp_success=%"NACL_PRIu32"\n",
+ DebugPrintf("PPB_AudioConfig::GetSampleRate: pp_success=%"NACL_PRId32"\n",
*sample_rate);
rpc->result = NACL_SRPC_RESULT_OK;
}
@@ -123,6 +123,6 @@ void PpbAudioConfigRpcServer::PPB_AudioConfig_GetSampleFrameCount(
}
*sample_frame_count = audio->GetSampleFrameCount(resource);
DebugPrintf("PPB_AudioConfig::GetSampleFrameCount: "
- "sample_frame_count=%"NACL_PRIu32"\n", *sample_frame_count);
+ "sample_frame_count=%"NACL_PRId32"\n", *sample_frame_count);
rpc->result = NACL_SRPC_RESULT_OK;
}
« no previous file with comments | « no previous file | ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_rpc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698