зеркало из https://github.com/mozilla/gecko-dev.git
Bug 932630 - [NetworkStats API] Need to fix saveAppStats(...) in test_networkstats_service_proxy.js. r=gene
This commit is contained in:
Родитель
091bb44eef
Коммит
74a09cdf5a
|
@ -31,6 +31,13 @@ NetworkStatsServiceProxy.prototype = {
|
|||
*/
|
||||
saveAppStats: function saveAppStats(aAppId, aNetwork, aTimeStamp,
|
||||
aRxBytes, aTxBytes, aCallback) {
|
||||
if (!aNetwork) {
|
||||
if (DEBUG) {
|
||||
debug("|aNetwork| is not specified. Failed to save stats. Returning.");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (DEBUG) {
|
||||
debug("saveAppStats: " + aAppId + " connectionType " + aNetwork.type +
|
||||
" " + aTimeStamp + " " + aRxBytes + " " + aTxBytes);
|
||||
|
|
Загрузка…
Ссылка в новой задаче