Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: chrome/browser/extensions/extension_cookies_helpers.cc

Issue 6248026: Rename Real* to Double* in values.* and dependent files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More renames Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_cookies_helpers.cc
diff --git a/chrome/browser/extensions/extension_cookies_helpers.cc b/chrome/browser/extensions/extension_cookies_helpers.cc
index 42e2fae4ef6448413b2b6adaa3eb9253595fd1a1..418eb971e29448010215034db9bf57b88c9eba3a 100644
--- a/chrome/browser/extensions/extension_cookies_helpers.cc
+++ b/chrome/browser/extensions/extension_cookies_helpers.cc
@@ -59,8 +59,10 @@ DictionaryValue* CreateCookieValue(
result->SetBoolean(keys::kSecureKey, cookie.IsSecure());
result->SetBoolean(keys::kHttpOnlyKey, cookie.IsHttpOnly());
result->SetBoolean(keys::kSessionKey, !cookie.DoesExpire());
- if (cookie.DoesExpire())
- result->SetReal(keys::kExpirationDateKey, cookie.ExpiryDate().ToDoubleT());
+ if (cookie.DoesExpire()) {
+ result->SetDouble(keys::kExpirationDateKey,
+ cookie.ExpiryDate().ToDoubleT());
+ }
result->SetString(keys::kStoreIdKey, store_id);
return result;

Powered by Google App Engine
This is Rietveld 408576698