🎨 Go back to single line declaration
This commit is contained in:
parent
4fc6cf48b0
commit
0485e9eb36
1 changed files with 1 additions and 3 deletions
|
@ -416,9 +416,7 @@ 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 = 0.0;
|
||||
double download_throughput = 0.0;
|
||||
double upload_throughput = 0.0;
|
||||
double latency = 0.0, download_throughput = 0.0, upload_throughput = 0.0;
|
||||
if (options.Get("offline", &offline) && offline) {
|
||||
conditions.reset(new brightray::DevToolsNetworkConditions(offline));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue