diff options
Diffstat (limited to 'chrome/test/webdriver/cookie.cc')
-rw-r--r-- | chrome/test/webdriver/cookie.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/test/webdriver/cookie.cc b/chrome/test/webdriver/cookie.cc index fdabc5e..a5a492a 100644 --- a/chrome/test/webdriver/cookie.cc +++ b/chrome/test/webdriver/cookie.cc @@ -72,10 +72,7 @@ Cookie::Cookie(const DictionaryValue& dict) { // it could be either a floating point or integer number. double expiry; if (!dict.GetDouble("expiry", &expiry)) { - int tmp; - if (!dict.GetInteger("expiry", &tmp)) - return; // Expiry is not a number, so the cookie is invalid. - expiry = static_cast<double>(tmp); + return; // Expiry is not a number, so the cookie is invalid. } expiration_ = base::Time::FromDoubleT(expiry); |