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

Unified Diff: chrome/browser/ui/ash/cast_config_delegate_chromeos.cc

Issue 1865213004: Convert //chrome/browser/ui 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
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/ash/cast_config_delegate_media_router.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc b/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
index 5333260d22e6cde6cd15c866b614a3e8d5f86c3c..462d80817cf4ea8b39c68d3aed48c4ce9557e230 100644
--- a/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc
@@ -5,11 +5,12 @@
#include "chrome/browser/ui/ash/cast_config_delegate_chromeos.h"
#include <stddef.h>
+
+#include <memory>
#include <string>
#include <utility>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.h"
#include "chrome/browser/extensions/api/tab_capture/tab_capture_api.h"
@@ -66,9 +67,9 @@ bool CastConfigDelegateChromeos::HasCastExtension() const {
}
void CastConfigDelegateChromeos::RequestDeviceRefresh() {
- scoped_ptr<base::ListValue> args =
+ std::unique_ptr<base::ListValue> args =
extensions::api::cast_devices_private::UpdateDevicesRequested::Create();
- scoped_ptr<extensions::Event> event(new extensions::Event(
+ std::unique_ptr<extensions::Event> event(new extensions::Event(
extensions::events::CAST_DEVICES_PRIVATE_ON_UPDATE_DEVICES_REQUESTED,
extensions::api::cast_devices_private::UpdateDevicesRequested::kEventName,
std::move(args)));
@@ -78,9 +79,9 @@ void CastConfigDelegateChromeos::RequestDeviceRefresh() {
void CastConfigDelegateChromeos::CastToReceiver(
const std::string& receiver_id) {
- scoped_ptr<base::ListValue> args =
+ std::unique_ptr<base::ListValue> args =
extensions::api::cast_devices_private::StartCast::Create(receiver_id);
- scoped_ptr<extensions::Event> event(new extensions::Event(
+ std::unique_ptr<extensions::Event> event(new extensions::Event(
extensions::events::CAST_DEVICES_PRIVATE_ON_START_CAST,
extensions::api::cast_devices_private::StartCast::kEventName,
std::move(args)));
@@ -89,9 +90,9 @@ void CastConfigDelegateChromeos::CastToReceiver(
}
void CastConfigDelegateChromeos::StopCasting(const std::string& activity_id) {
- scoped_ptr<base::ListValue> args =
+ std::unique_ptr<base::ListValue> args =
extensions::api::cast_devices_private::StopCast::Create("user-stop");
- scoped_ptr<extensions::Event> event(new extensions::Event(
+ std::unique_ptr<extensions::Event> event(new extensions::Event(
extensions::events::CAST_DEVICES_PRIVATE_ON_STOP_CAST,
extensions::api::cast_devices_private::StopCast::kEventName,
std::move(args)));
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/ash/cast_config_delegate_media_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698