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

Unified Diff: extensions/browser/api/cast_channel/cast_framer.h

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: extensions/browser/api/cast_channel/cast_framer.h
diff --git a/extensions/browser/api/cast_channel/cast_framer.h b/extensions/browser/api/cast_channel/cast_framer.h
index 6c54f686791cffaabef75229a2843474cbbf2361..ec8fcfe6088d95069bcadca0ccdb629f3ff1c105 100644
--- a/extensions/browser/api/cast_channel/cast_framer.h
+++ b/extensions/browser/api/cast_channel/cast_framer.h
@@ -8,10 +8,10 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "extensions/common/api/cast_channel.h"
#include "net/base/io_buffer.h"
@@ -49,9 +49,9 @@ class MessageFramer {
// if no error occurred.
// Returns A pointer to a parsed CastMessage if a message was received
// in its entirety, nullptr otherwise.
- scoped_ptr<CastMessage> Ingest(size_t num_bytes,
- size_t* message_length,
- ChannelError* error);
+ std::unique_ptr<CastMessage> Ingest(size_t num_bytes,
+ size_t* message_length,
+ ChannelError* error);
// Message header struct. If fields are added, be sure to update
// header_size(). Public to allow use of *_size() methods in unit tests.
« no previous file with comments | « extensions/browser/api/cast_channel/cast_channel_apitest.cc ('k') | extensions/browser/api/cast_channel/cast_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698