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

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

Issue 2045723002: mojo ArrayTraits<T>::Resize returns bool indicating success (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: mojo/public/cpp/bindings/array_traits_wtf.h
diff --git a/mojo/public/cpp/bindings/array_traits_wtf.h b/mojo/public/cpp/bindings/array_traits_wtf.h
index 71f1da1116aa2916de9f3b74b9504fd6c326fea2..7e773fc66680a09ad8bb219e68e6ab43aed9baf2 100644
--- a/mojo/public/cpp/bindings/array_traits_wtf.h
+++ b/mojo/public/cpp/bindings/array_traits_wtf.h
@@ -29,7 +29,10 @@ struct ArrayTraits<WTFArray<U>> {
return input[index];
}
- static void Resize(WTFArray<U>& input, size_t size) { input.resize(size); }
+ static bool Resize(WTFArray<U>& input, size_t size) {
+ input.resize(size);
+ return true;
+ }
};
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698