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

Unified Diff: mojo/public/cpp/bindings/array_traits.h

Issue 2045723002: mojo ArrayTraits<T>::Resize returns bool indicating success (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed pach Created 4 years, 6 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 | « gpu/ipc/common/mailbox_struct_traits.cc ('k') | mojo/public/cpp/bindings/array_traits_standard.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/array_traits.h
diff --git a/mojo/public/cpp/bindings/array_traits.h b/mojo/public/cpp/bindings/array_traits.h
index f94648bdaa27ca07a5a75f8389a202c9cc2ba671..16e57ffe14f68f26d0a38729adab0fd9e97536ff 100644
--- a/mojo/public/cpp/bindings/array_traits.h
+++ b/mojo/public/cpp/bindings/array_traits.h
@@ -32,7 +32,9 @@ namespace mojo {
// static T& GetAt(CustomArray<T>& input, size_t index);
// static const T& GetAt(const CustomArray<T>& input, size_t index);
//
-// static void Resize(CustomArray<T>& input, size_t size);
+// Returning false results in deserialization failure and causes the message
+// pipe receiving it to be disconnected.
+// static bool Resize(CustomArray<T>& input, size_t size);
// };
//
template <typename T>
« no previous file with comments | « gpu/ipc/common/mailbox_struct_traits.cc ('k') | mojo/public/cpp/bindings/array_traits_standard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698