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

Side by Side Diff: device/generic_sensor/sensor_provider_impl.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "device/generic_sensor/sensor_provider_impl.h" 5 #include "device/generic_sensor/sensor_provider_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
10 #include "device/generic_sensor/platform_sensor_provider.h" 11 #include "device/generic_sensor/platform_sensor_provider.h"
11 #include "device/generic_sensor/sensor_impl.h" 12 #include "device/generic_sensor/sensor_impl.h"
12 #include "mojo/public/cpp/bindings/strong_binding.h" 13 #include "mojo/public/cpp/bindings/strong_binding.h"
13 14
14 namespace device { 15 namespace device {
15 16
16 namespace { 17 namespace {
17 18
18 void RunCallback(mojom::SensorInitParamsPtr init_params, 19 void RunCallback(mojom::SensorInitParamsPtr init_params,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 init_params->maximum_frequency = maximum_frequency; 102 init_params->maximum_frequency = maximum_frequency;
102 103
103 NotifySensorCreated(std::move(init_params), sensor_impl->GetClient(), 104 NotifySensorCreated(std::move(init_params), sensor_impl->GetClient(),
104 callback); 105 callback);
105 106
106 mojo::MakeStrongBinding(std::move(sensor_impl), std::move(sensor_request)); 107 mojo::MakeStrongBinding(std::move(sensor_impl), std::move(sensor_request));
107 } 108 }
108 109
109 } // namespace device 110 } // namespace device
OLDNEW
« no previous file with comments | « device/generic_sensor/platform_sensor_reader_win.cc ('k') | device/power_monitor/power_monitor_message_broadcaster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698