| Index: extensions/browser/api/web_request/form_data_parser_unittest.cc
|
| diff --git a/extensions/browser/api/web_request/form_data_parser_unittest.cc b/extensions/browser/api/web_request/form_data_parser_unittest.cc
|
| index 6f700c7ae6d22bf5f19ed9a8e9734e404e4ba09c..8a5648f626e02356e79e29fda83247690e628855 100644
|
| --- a/extensions/browser/api/web_request/form_data_parser_unittest.cc
|
| +++ b/extensions/browser/api/web_request/form_data_parser_unittest.cc
|
| @@ -16,11 +16,12 @@ namespace {
|
|
|
| // Attempts to create a parser corresponding to the |content_type_header|.
|
| // On success, returns the parser.
|
| -scoped_ptr<FormDataParser> InitParser(const std::string& content_type_header) {
|
| - scoped_ptr<FormDataParser> parser(
|
| +std::unique_ptr<FormDataParser> InitParser(
|
| + const std::string& content_type_header) {
|
| + std::unique_ptr<FormDataParser> parser(
|
| FormDataParser::CreateFromContentTypeHeader(&content_type_header));
|
| if (parser.get() == NULL)
|
| - return scoped_ptr<FormDataParser>();
|
| + return std::unique_ptr<FormDataParser>();
|
| return parser;
|
| }
|
|
|
| @@ -33,7 +34,7 @@ bool RunParser(const std::string& content_type_header,
|
| std::vector<std::string>* output) {
|
| DCHECK(output);
|
| output->clear();
|
| - scoped_ptr<FormDataParser> parser(InitParser(content_type_header));
|
| + std::unique_ptr<FormDataParser> parser(InitParser(content_type_header));
|
| if (!parser.get())
|
| return false;
|
| FormDataParser::Result result;
|
| @@ -54,7 +55,7 @@ bool RunParser(const std::string& content_type_header,
|
| bool CheckParserFails(const std::string& content_type_header,
|
| const std::vector<const base::StringPiece*>& bytes) {
|
| std::vector<std::string> output;
|
| - scoped_ptr<FormDataParser> parser(InitParser(content_type_header));
|
| + std::unique_ptr<FormDataParser> parser(InitParser(content_type_header));
|
| if (!parser.get())
|
| return false;
|
| FormDataParser::Result result;
|
|
|