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

Side by Side Diff: services/device/public/cpp/sensors/orientation_data.cc

Issue 2819273006: Move //device/sensor impl to be part of the internal implemenation of the Device Service. (Closed)
Patch Set: Move //device/sensor impl to be part of the internal implemenation of the Device Service Created 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/sensors/public/cpp/orientation_data.h" 5 #include "services/device/public/cpp/sensors/orientation_data.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 namespace device { 9 namespace device {
10 10
11 OrientationData::OrientationData() { 11 OrientationData::OrientationData() {
12 // Make sure to zero out the memory so that there are no uninitialized bits. 12 // Make sure to zero out the memory so that there are no uninitialized bits.
13 // This object is used in the shared memory buffer and is memory copied by 13 // This object is used in the shared memory buffer and is memory copied by
14 // two processes. Valgrind will complain if we copy around memory that is 14 // two processes. Valgrind will complain if we copy around memory that is
15 // only partially initialized. 15 // only partially initialized.
16 memset(this, 0, sizeof(*this)); 16 memset(this, 0, sizeof(*this));
17 } 17 }
18 18
19 } // namespace device 19 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698