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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/test_util.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: iwyu fixes 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/file_system_provider/operations/test_util.h" 5 #include "chrome/browser/chromeos/file_system_provider/operations/test_util.h"
6 #include "extensions/browser/event_router.h" 6 #include "extensions/browser/event_router.h"
7 7
8 namespace chromeos { 8 namespace chromeos {
9 namespace file_system_provider { 9 namespace file_system_provider {
10 namespace operations { 10 namespace operations {
11 namespace util { 11 namespace util {
12 12
13 LoggingDispatchEventImpl::LoggingDispatchEventImpl(bool dispatch_reply) 13 LoggingDispatchEventImpl::LoggingDispatchEventImpl(bool dispatch_reply)
14 : dispatch_reply_(dispatch_reply) { 14 : dispatch_reply_(dispatch_reply) {
15 } 15 }
16 16
17 LoggingDispatchEventImpl::~LoggingDispatchEventImpl() { 17 LoggingDispatchEventImpl::~LoggingDispatchEventImpl() {
18 } 18 }
19 19
20 bool LoggingDispatchEventImpl::OnDispatchEventImpl( 20 bool LoggingDispatchEventImpl::OnDispatchEventImpl(
21 scoped_ptr<extensions::Event> event) { 21 std::unique_ptr<extensions::Event> event) {
22 events_.push_back(event->DeepCopy()); 22 events_.push_back(event->DeepCopy());
23 return dispatch_reply_; 23 return dispatch_reply_;
24 } 24 }
25 25
26 void LogStatusCallback(StatusCallbackLog* log, base::File::Error result) { 26 void LogStatusCallback(StatusCallbackLog* log, base::File::Error result) {
27 log->push_back(result); 27 log->push_back(result);
28 } 28 }
29 29
30 } // namespace util 30 } // namespace util
31 } // namespace operations 31 } // namespace operations
32 } // namespace file_system_provider 32 } // namespace file_system_provider
33 } // namespace chromeos 33 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698