| Index: chrome/test/webdriver/cookie.cc
|
| diff --git a/chrome/test/webdriver/cookie.cc b/chrome/test/webdriver/cookie.cc
|
| index fdabc5e84ae303085f5c6c8d1adefd04716d5bf0..a5a492a4a1a50e9089d4f613b24797f435cafc81 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);
|
|
|