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

Unified Diff: chrome/browser/chromeos/arc/arc_support_host.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: chrome/browser/chromeos/arc/arc_support_host.cc
diff --git a/chrome/browser/chromeos/arc/arc_support_host.cc b/chrome/browser/chromeos/arc/arc_support_host.cc
index 44563ad7f0b2166e6517ae5d1e4a43656104da5e..a2643d2aa0f2bbfc972e6f60862f7df659d2cc12 100644
--- a/chrome/browser/chromeos/arc/arc_support_host.cc
+++ b/chrome/browser/chromeos/arc/arc_support_host.cc
@@ -36,8 +36,8 @@ const char* const ArcSupportHost::kHostOrigin[] = {
"chrome-extension://cnbgggchhmkkdmeppjobngjoejnihlei/"};
// static
-scoped_ptr<extensions::NativeMessageHost> ArcSupportHost::Create() {
- return scoped_ptr<NativeMessageHost>(new ArcSupportHost());
+std::unique_ptr<extensions::NativeMessageHost> ArcSupportHost::Create() {
+ return std::unique_ptr<NativeMessageHost>(new ArcSupportHost());
}
ArcSupportHost::ArcSupportHost() {
@@ -61,7 +61,7 @@ void ArcSupportHost::Start(Client* client) {
void ArcSupportHost::SendLocalization() {
DCHECK(client_);
- scoped_ptr<base::DictionaryValue> localized_strings(
+ std::unique_ptr<base::DictionaryValue> localized_strings(
new base::DictionaryValue());
base::string16 device_name = ash::GetChromeOSDeviceName();
localized_strings->SetString(
@@ -127,7 +127,7 @@ void ArcSupportHost::OnOptInUIShowPage(arc::ArcAuthService::UIPage page,
}
void ArcSupportHost::OnMessage(const std::string& request_string) {
- scoped_ptr<base::Value> request_value =
+ std::unique_ptr<base::Value> request_value =
base::JSONReader::Read(request_string);
base::DictionaryValue* request;
if (!request_value || !request_value->GetAsDictionary(&request)) {
« no previous file with comments | « chrome/browser/chromeos/arc/arc_support_host.h ('k') | chrome/browser/chromeos/attestation/attestation_ca_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698