Commit 498b0f76 authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

//ppapi: Convert base::(U)Int(64)ToString(16) to NumberToString(16)

The former non-overloaded variants are deprecated.
Removed casts where they are now unnecessary.

This is a mechanical change; there is no intended behavior change.

Bug: 929827
Change-Id: I43577068160b171779166b1795b22dd69137b4a6
Reviewed-on: https://chromium-review.googlesource.com/c/1461376
Commit-Queue: Raul Tambre <raul@tambre.ee>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Auto-Submit: Raul Tambre <raul@tambre.ee>
Reviewed-by: default avatarBill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630513}
parent f89a5101
...@@ -36,7 +36,7 @@ class PPB_VarTest : public PluginProxyTest { ...@@ -36,7 +36,7 @@ class PPB_VarTest : public PluginProxyTest {
ppb_var_(ppapi::PPB_Var_Shared::GetVarInterface1_2()) { ppb_var_(ppapi::PPB_Var_Shared::GetVarInterface1_2()) {
// Set the value of test_strings_[i] to "i". // Set the value of test_strings_[i] to "i".
for (size_t i = 0; i < kNumStrings; ++i) for (size_t i = 0; i < kNumStrings; ++i)
test_strings_[i] = base::IntToString(static_cast<int>(i)); test_strings_[i] = base::NumberToString(i);
} }
protected: protected:
std::vector<std::string> test_strings_; std::vector<std::string> test_strings_;
......
...@@ -70,7 +70,7 @@ PP_Bool URLRequestInfoResource::SetProperty(PP_URLRequestProperty property, ...@@ -70,7 +70,7 @@ PP_Bool URLRequestInfoResource::SetProperty(PP_URLRequestProperty property,
if (!result) { if (!result) {
std::string error_msg("PPB_URLRequestInfo.SetProperty: Attempted to set a " std::string error_msg("PPB_URLRequestInfo.SetProperty: Attempted to set a "
"value for PP_URLRequestProperty "); "value for PP_URLRequestProperty ");
error_msg += base::IntToString(property); error_msg += base::NumberToString(property);
error_msg += ", but either this property type is invalid or its parameter " error_msg += ", but either this property type is invalid or its parameter "
"was inappropriate (e.g., the wrong type of PP_Var)."; "was inappropriate (e.g., the wrong type of PP_Var).";
Log(PP_LOGLEVEL_ERROR, error_msg); Log(PP_LOGLEVEL_ERROR, error_msg);
......
...@@ -31,7 +31,7 @@ std::string Var::PPVarToLogString(PP_Var var) { ...@@ -31,7 +31,7 @@ std::string Var::PPVarToLogString(PP_Var var) {
case PP_VARTYPE_BOOL: case PP_VARTYPE_BOOL:
return var.value.as_bool ? "[True]" : "[False]"; return var.value.as_bool ? "[True]" : "[False]";
case PP_VARTYPE_INT32: case PP_VARTYPE_INT32:
return base::IntToString(var.value.as_int); return base::NumberToString(var.value.as_int);
case PP_VARTYPE_DOUBLE: case PP_VARTYPE_DOUBLE:
return base::NumberToString(var.value.as_double); return base::NumberToString(var.value.as_double);
case PP_VARTYPE_STRING: { case PP_VARTYPE_STRING: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment