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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/operation.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/file_system_provider/operations/operation.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/operation.cc b/chrome/browser/chromeos/file_system_provider/operations/operation.cc
index 958ecfd22c64e404b7783905b3192b27d4529e41..849ec77847594a873b0991445efa3e63b5148cf5 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/operation.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/operation.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/memory/ptr_util.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h"
#include "extensions/browser/event_router.h"
@@ -18,7 +19,7 @@ namespace {
// tests by Operation::SetDispatchEventImplForTest().
bool DispatchEventImpl(extensions::EventRouter* event_router,
const std::string& extension_id,
- scoped_ptr<extensions::Event> event) {
+ std::unique_ptr<extensions::Event> event) {
if (!event_router->ExtensionHasEventListener(extension_id, event->event_name))
return false;
@@ -47,8 +48,8 @@ void Operation::SetDispatchEventImplForTesting(
bool Operation::SendEvent(int request_id,
extensions::events::HistogramValue histogram_value,
const std::string& event_name,
- scoped_ptr<base::ListValue> event_args) {
- return dispatch_event_impl_.Run(make_scoped_ptr(new extensions::Event(
+ std::unique_ptr<base::ListValue> event_args) {
+ return dispatch_event_impl_.Run(base::WrapUnique(new extensions::Event(
histogram_value, event_name, std::move(event_args))));
}

Powered by Google App Engine
This is Rietveld 408576698