Add expiration date to GERRIT_UI cookie

Adds an expiration date to the GERRIT_UI cookie so that it does not
default to a session cookie. Calculates two years from now, and uses
that because that is the same length as the cookie set by the link in
the footer of the gerrit site.

Bug: Issue 4999
Change-Id: I40e47f12c8e7a90593c9ca927582ad4d0ef5ad9c
1 file changed
tree: dde05529d0d9cf6e3a36e6b5944d850cbb3a482e
  1. .gitignore
  2. app_icon_512.png
  3. background.js
  4. content.js
  5. icon_19.png
  6. icon_38.png
  7. icon_active_19.png
  8. icon_active_38.png
  9. LICENSE
  10. manifest.json
  11. options.html
  12. options.js
  13. README.md
README.md

gerrit-switch

Chrome extension used to toggle PolyGerrit UI in Gerrit