| Index: chrome/test/chromedriver/capabilities.cc
|
| diff --git a/chrome/test/chromedriver/capabilities.cc b/chrome/test/chromedriver/capabilities.cc
|
| index d72372bea1cd69c46b6a0b5d2054289dbe582b0d..b30e871d4ba898f70603ca2b36c314b562375457 100644
|
| --- a/chrome/test/chromedriver/capabilities.cc
|
| +++ b/chrome/test/chromedriver/capabilities.cc
|
| @@ -124,9 +124,9 @@ Status ParseMobileEmulation(const base::Value& option,
|
| if (!mobile_emulation->GetDictionary("deviceMetrics", &metrics))
|
| return Status(kUnknownError, "'deviceMetrics' must be a dictionary");
|
|
|
| - int width;
|
| - int height;
|
| - double device_scale_factor;
|
| + int width = 0;
|
| + int height = 0;
|
| + double device_scale_factor = 0;
|
| if (!metrics->GetInteger("width", &width) ||
|
| !metrics->GetInteger("height", &height) ||
|
| !metrics->GetDouble("pixelRatio", &device_scale_factor))
|
|
|