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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/device_sensors/device_light_data.cc
diff --git a/content/browser/power_profiler/power_data_provider_dummy.cc b/content/common/device_sensors/device_light_data.cc
similarity index 63%
copy from content/browser/power_profiler/power_data_provider_dummy.cc
copy to content/common/device_sensors/device_light_data.cc
index 749f7c5066de86791a8bf26af6d05dd2429151a9..3b48a35bdb6818a8eb5869fe5b810845d2f3a003 100644
--- a/content/browser/power_profiler/power_data_provider_dummy.cc
+++ b/content/common/device_sensors/device_light_data.cc
@@ -2,12 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/power_profiler/power_data_provider.h"
+#include "content/common/device_sensors/device_light_data.h"
+
+#include <string.h>
namespace content {
-scoped_ptr<PowerDataProvider> PowerDataProvider::Create() {
- return make_scoped_ptr<PowerDataProvider>(NULL);
+DeviceLightData::DeviceLightData()
+{
+ 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.
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698