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

Unified Diff: chrome/browser/chromeos/policy/device_status_collector.h

Issue 1062853005: Map signal_strength from percentage to dBm per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaked comment. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/device_status_collector.h
diff --git a/chrome/browser/chromeos/policy/device_status_collector.h b/chrome/browser/chromeos/policy/device_status_collector.h
index f91298d433a16533521d3126fc50d8924c6a873c..61625faf2b0bb18742b0e38c3152634e275970a8 100644
--- a/chrome/browser/chromeos/policy/device_status_collector.h
+++ b/chrome/browser/chromeos/policy/device_status_collector.h
@@ -185,6 +185,10 @@ class DeviceStatusCollector {
// Callback invoked to update our cpu usage information.
void ReceiveCPUStatistics(const std::string& statistics);
+ // Helper routine to convert from Shill-provided signal strength (percent)
+ // to dBm units expected by server.
+ int ConvertSignalStrength(int signal_strength);
+
PrefService* local_state_;
// The last time an idle state check was performed.

Powered by Google App Engine
This is Rietveld 408576698