| Index: content/renderer/manifest/manifest_parser.cc
|
| diff --git a/content/renderer/manifest/manifest_parser.cc b/content/renderer/manifest/manifest_parser.cc
|
| index 40d4d3311004f334c47ebb315459bb413943b7a3..f129b01fec4ce60ca4eede323b30fcd8cf1d2c09 100644
|
| --- a/content/renderer/manifest/manifest_parser.cc
|
| +++ b/content/renderer/manifest/manifest_parser.cc
|
| @@ -150,9 +150,10 @@ const Manifest& ManifestParser::manifest() const {
|
| return manifest_;
|
| }
|
|
|
| -const std::vector<std::unique_ptr<ManifestParser::ErrorInfo>>&
|
| -ManifestParser::errors() const {
|
| - return errors_;
|
| +void ManifestParser::TakeErrors(
|
| + std::vector<ManifestDebugInfo::Error>* errors) {
|
| + errors->clear();
|
| + errors->swap(errors_);
|
| }
|
|
|
| bool ManifestParser::failed() const {
|
| @@ -446,7 +447,7 @@ base::NullableString16 ManifestParser::ParseGCMSenderID(
|
| void ManifestParser::AddErrorInfo(const std::string& error_msg,
|
| int error_line,
|
| int error_column) {
|
| - errors_.push_back(
|
| - base::WrapUnique(new ErrorInfo(error_msg, error_line, error_column)));
|
| + errors_.push_back({error_msg, error_line, error_column});
|
| }
|
| +
|
| } // namespace content
|
|
|