//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: Bill Budge <bbudge@chromium.org> Cr-Commit-Position: refs/heads/master@{#630513}
This commit is contained in:
ppapi
@ -36,7 +36,7 @@ class PPB_VarTest : public PluginProxyTest {
|
||||
ppb_var_(ppapi::PPB_Var_Shared::GetVarInterface1_2()) {
|
||||
// Set the value of test_strings_[i] to "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:
|
||||
std::vector<std::string> test_strings_;
|
||||
|
@ -70,7 +70,7 @@ PP_Bool URLRequestInfoResource::SetProperty(PP_URLRequestProperty property,
|
||||
if (!result) {
|
||||
std::string error_msg("PPB_URLRequestInfo.SetProperty: Attempted to set a "
|
||||
"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 "
|
||||
"was inappropriate (e.g., the wrong type of PP_Var).";
|
||||
Log(PP_LOGLEVEL_ERROR, error_msg);
|
||||
|
@ -31,7 +31,7 @@ std::string Var::PPVarToLogString(PP_Var var) {
|
||||
case PP_VARTYPE_BOOL:
|
||||
return var.value.as_bool ? "[True]" : "[False]";
|
||||
case PP_VARTYPE_INT32:
|
||||
return base::IntToString(var.value.as_int);
|
||||
return base::NumberToString(var.value.as_int);
|
||||
case PP_VARTYPE_DOUBLE:
|
||||
return base::NumberToString(var.value.as_double);
|
||||
case PP_VARTYPE_STRING: {
|
||||
|
Reference in New Issue
Block a user