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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/operation.cc

Issue 2257103002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698