| OLD | NEW |
| 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/operation.h" | 5 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 void Operation::SetDispatchEventImplForTesting( | 43 void Operation::SetDispatchEventImplForTesting( |
| 44 const DispatchEventImplCallback& callback) { | 44 const DispatchEventImplCallback& callback) { |
| 45 dispatch_event_impl_ = callback; | 45 dispatch_event_impl_ = callback; |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool Operation::SendEvent(int request_id, | 48 bool Operation::SendEvent(int request_id, |
| 49 extensions::events::HistogramValue histogram_value, | 49 extensions::events::HistogramValue histogram_value, |
| 50 const std::string& event_name, | 50 const std::string& event_name, |
| 51 std::unique_ptr<base::ListValue> event_args) { | 51 std::unique_ptr<base::ListValue> event_args) { |
| 52 return dispatch_event_impl_.Run(base::WrapUnique(new extensions::Event( | 52 return dispatch_event_impl_.Run(base::MakeUnique<extensions::Event>( |
| 53 histogram_value, event_name, std::move(event_args)))); | 53 histogram_value, event_name, std::move(event_args))); |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace operations | 56 } // namespace operations |
| 57 } // namespace file_system_provider | 57 } // namespace file_system_provider |
| 58 } // namespace chromeos | 58 } // namespace chromeos |
| OLD | NEW |