| Index: base/values.h
|
| diff --git a/base/values.h b/base/values.h
|
| index ac6307ac6a1cc507ebfd76f15ddb8bfb508f31e0..44af9c1ee3935c427905c473969a6e94e2780584 100644
|
| --- a/base/values.h
|
| +++ b/base/values.h
|
| @@ -431,9 +431,11 @@ class ValueSerializer {
|
|
|
| // This method deserializes the subclass-specific format into a Value object.
|
| // If the return value is non-NULL, the caller takes ownership of returned
|
| - // Value. If the return value is NULL, and if error_message is non-NULL,
|
| - // error_message should be filled with a message describing the error.
|
| - virtual Value* Deserialize(std::string* error_message) = 0;
|
| + // Value. If the return value is NULL, and if error_code is non-NULL,
|
| + // error_code will be set with the underlying error.
|
| + // If |error_message| is non-null, it will be filled in with a formatted
|
| + // error message including the location of the error if appropriate.
|
| + virtual Value* Deserialize(int* error_code, std::string* error_str) = 0;
|
| };
|
|
|
| #endif // BASE_VALUES_H_
|
|
|