Default network values to 0.0

This commit is contained in:
Kevin Sawicki 2016-08-22 14:19:09 -07:00
parent e84d0ebb7e
commit ad3dc3766e

View file

@ -416,7 +416,9 @@ void Session::SetDownloadPath(const base::FilePath& path) {
void Session::EnableNetworkEmulation(const mate::Dictionary& options) {
std::unique_ptr<brightray::DevToolsNetworkConditions> conditions;
bool offline = false;
double latency, download_throughput, upload_throughput;
double latency = 0.0;
double download_throughput = 0.0;
double upload_throughput = 0.0;
if (options.Get("offline", &offline) && offline) {
conditions.reset(new brightray::DevToolsNetworkConditions(offline));
} else {