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

Side by Side Diff: content/common/device_sensors/device_light_data.cc

Issue 286793002: [DeviceLight] Add renderer+common parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work on Tim's comments Created 6 years, 6 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 "content/browser/power_profiler/power_data_provider.h" 5 #include "content/common/device_sensors/device_light_data.h"
6
7 #include <string.h>
6 8
7 namespace content { 9 namespace content {
8 10
9 scoped_ptr<PowerDataProvider> PowerDataProvider::Create() { 11 DeviceLightData::DeviceLightData()
10 return make_scoped_ptr<PowerDataProvider>(NULL); 12 {
13 memset(this, 0, sizeof(*this));
jochen (gone - plz use gerrit) 2014/06/12 14:33:50 don't do this. use proper initialization.
riju_ 2014/06/13 17:06:25 Done.
11 } 14 }
12 15
13 } // namespace content 16 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698