int* time) const {
DCHECK(time != NULL);
bool charging = false;
+#if !defined(EWK_BRINGUP)
+// [M47_2526] Temporary disabling the codes for switching to new chromium
+// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14521
if (device_battery_is_charging(&charging) != DEVICE_ERROR_NONE ||
charging == false)
return DEVICE_ERROR_OPERATION_FAILED;
+#endif
int temp_time = 0;
if (vconf_get_int(VCONFKEY_PM_BATTERY_TIMETOFULL, &temp_time) < 0 ||
int* time) const {
DCHECK(time != NULL);
bool charging = false;
+#if !defined(EWK_BRINGUP)
+// [M47_2526] Temporary disabling the codes for switching to new chromium
+// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14521
if (device_battery_is_charging(&charging) != DEVICE_ERROR_NONE ||
charging == true)
return DEVICE_ERROR_OPERATION_FAILED;
+#endif
int temp_time = 0;
if (vconf_get_int(VCONFKEY_PM_BATTERY_TIMETOEMPTY, time) < 0 ||
bool BatteryStatusManagerTizen::StartListeningBatteryChange() {
if (vconf_notify_key_changed(
VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW, OnChargingStatusChanged, this) ||
+#if !defined(EWK_BRINGUP)
+// [M47_2526] Temporary disabling the codes for switching to new chromium
+// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14521
device_battery_set_cb(OnLevelChanged, this) != DEVICE_ERROR_NONE ||
+#endif
SetRemainingTimeUntilFullyChargedCb(OnChargingTimeChanged, this)
!= DEVICE_ERROR_NONE ||
SetRemainingTimeUntilDischargedCb(OnDischargingTimeChanged, this)
return false;
int level = 0, charging_time = 0, discharging_time = 0;
+#if !defined(EWK_BRINGUP)
+// [M47_2526] Temporary disabling the codes for switching to new chromium
+// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14521
device_battery_get_percent(&level);
+#endif
GetRemainingTimeUntilFullyCharged(&charging_time);
GetRemainingTimeUntilDischarged(&discharging_time);
UnsetRemainingTimeUntilDischargedCb();
vconf_ignore_key_changed(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW,
OnChargingStatusChanged);
+#if !defined(EWK_BRINGUP)
+// [M47_2526] Temporary disabling the codes for switching to new chromium
+// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14521
device_battery_unset_cb();
+#endif
}
} // namespace device