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

Unified Diff: base/values.h

Issue 10389088: BinaryValue does not support NULL buffer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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 | « no previous file | base/values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.h
diff --git a/base/values.h b/base/values.h
index 4bcdc7526e44b39352fdf1763e2ad4c04860a125..9f9c641df97feff3d6891a53f32b36026510342c 100644
--- a/base/values.h
+++ b/base/values.h
@@ -181,13 +181,11 @@ class BASE_EXPORT BinaryValue: public Value {
// Creates a Value to represent a binary buffer. The new object takes
// ownership of the pointer passed in, if successful.
- // Returns NULL if buffer is NULL.
static BinaryValue* Create(char* buffer, size_t size);
asargent_no_longer_on_chrome 2012/05/11 21:22:46 Instead of just changing the behavior of the Creat
// For situations where you want to keep ownership of your buffer, this
// factory method creates a new BinaryValue by copying the contents of the
// buffer that's passed in.
- // Returns NULL if buffer is NULL.
static BinaryValue* CreateWithCopiedBuffer(const char* buffer, size_t size);
size_t GetSize() const { return size_; }
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698