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

Unified Diff: ppapi/proxy/ppb_instance_proxy.cc

Issue 915403003: Enable size_t to int truncation warnings in PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/proxy/ppb_instance_proxy.cc
diff --git a/ppapi/proxy/ppb_instance_proxy.cc b/ppapi/proxy/ppb_instance_proxy.cc
index f8b8ac9c22ac45b4fe261e3502b1a0ff81b22c08..a1e63f99223e36a16142e263bccd5470a9dfebb4 100644
--- a/ppapi/proxy/ppb_instance_proxy.cc
+++ b/ppapi/proxy/ppb_instance_proxy.cc
@@ -1302,7 +1302,8 @@ void PPB_Instance_Proxy::OnHostMsgSessionKeysChange(
StringVar::StringToPPVar(session_id));
enter.functions()->SessionKeysChange(
instance, session_id_var.get(), has_additional_usable_key,
- key_information.size(), vector_as_array(&key_information));
+ static_cast<uint32_t>(key_information.size()),
+ vector_as_array(&key_information));
}
}

Powered by Google App Engine
This is Rietveld 408576698