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 "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 |
OLD | NEW |