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

Unified Diff: content/renderer/text_input_client_observer.cc

Issue 1873783003: Convert //content/renderer 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
« no previous file with comments | « content/renderer/speech_recognition_dispatcher.cc ('k') | content/renderer/usb/web_usb_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/text_input_client_observer.cc
diff --git a/content/renderer/text_input_client_observer.cc b/content/renderer/text_input_client_observer.cc
index b97be4a31bd5497b3a58e2a91615a93c90cda472..dec0181a87f0e6aab16216249a2ef88ec58cf504 100644
--- a/content/renderer/text_input_client_observer.cc
+++ b/content/renderer/text_input_client_observer.cc
@@ -6,7 +6,8 @@
#include <stddef.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "build/build_config.h"
#include "content/common/text_input_client_messages.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
@@ -54,7 +55,7 @@ void TextInputClientObserver::OnStringAtPoint(gfx::Point point) {
NSAttributedString* string = blink::WebSubstringUtil::attributedWordAtPoint(
webview(), point, baselinePoint);
- scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded(
+ std::unique_ptr<const mac::AttributedStringCoder::EncodedString> encoded(
mac::AttributedStringCoder::Encode(string));
Send(new TextInputClientReplyMsg_GotStringAtPoint(
routing_id(), *encoded.get(), baselinePoint));
@@ -99,7 +100,7 @@ void TextInputClientObserver::OnStringForRange(gfx::Range range) {
string = blink::WebSubstringUtil::attributedSubstringInRange(
frame, range.start(), range.length(), &baselinePoint);
}
- scoped_ptr<const mac::AttributedStringCoder::EncodedString> encoded(
+ std::unique_ptr<const mac::AttributedStringCoder::EncodedString> encoded(
mac::AttributedStringCoder::Encode(string));
Send(new TextInputClientReplyMsg_GotStringForRange(routing_id(),
*encoded.get(), baselinePoint));
« no previous file with comments | « content/renderer/speech_recognition_dispatcher.cc ('k') | content/renderer/usb/web_usb_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698