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

Issue 11339032: Account for server vs host clock skew in cookie expiration times. (Closed)

Created:
8 years, 1 month ago by pauljensen
Modified:
8 years, 1 month ago
CC:
chromium-reviews, erikwright (departed), cbentzel+watch_chromium.org, darin-cc_chromium.org, wtc, rkn
Visibility:
Public.

Description

Account for server vs host clock skew in cookie expiration times. When setting a cookie's expiration time in the cookie store we need to take into account any difference between the HTTP server and the host machine's real time clock. This reverts 159685 which reverted 146616. BUG=135131 TEST=net_unittests --gtest_filter=CookieMonster/CookieStoreTest/0.TestCookieDeletion Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165323

Patch Set 1 #

Patch Set 2 : Add 152078 specific test case #

Total comments: 2

Patch Set 3 : Address szym's comments #

Patch Set 4 : Disable test under chrome frame, get building with r165131 #

Patch Set 5 : Disable test on Android as there's no test server #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -8 lines) Patch
M build/android/gtest_filter/net_unittests_disabled View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_cookie_helper.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/cookies/canonical_cookie.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/cookies/canonical_cookie.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M net/cookies/cookie_monster.cc View 2 chunks +7 lines, -1 line 0 comments Download
M net/cookies/cookie_options.h View 1 chunk +12 lines, -1 line 0 comments Download
M net/cookies/cookie_store_unittest.h View 2 chunks +27 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 1 chunk +98 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
pauljensen
Erik & Szymon, this is simply a revert of Erik's change which reverted my original ...
8 years, 1 month ago (2012-10-30 01:14:35 UTC) #1
szym
Rubber stamp LGTM. Is there a test case which covers the case that caused the ...
8 years, 1 month ago (2012-10-30 01:27:02 UTC) #2
erikwright (departed)
Also rubberstamp LGTM. Also agree that a new test case covering that failure would be ...
8 years, 1 month ago (2012-10-30 02:00:01 UTC) #3
cbentzel
I would suggest waiting to land this after the branch point has been announced. On ...
8 years, 1 month ago (2012-10-30 18:10:02 UTC) #4
erikwright (departed)
Oh, don't worry, it's a totally different release manager this time. They'll never realize we ...
8 years, 1 month ago (2012-10-30 18:11:37 UTC) #5
pauljensen
I will not land prior to branch point. PTAL at additional test case.
8 years, 1 month ago (2012-10-30 19:23:38 UTC) #6
szym
Test case LGTM. http://codereview.chromium.org/11339032/diff/6001/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): http://codereview.chromium.org/11339032/diff/6001/net/url_request/url_request_unittest.cc#newcode1749 net/url_request/url_request_unittest.cc:1749: FixedDateNetworkDelegate(std::string fixed_date); nit: make explicit, use ...
8 years, 1 month ago (2012-10-30 19:52:53 UTC) #7
erikwright (departed)
test-case LGTM.
8 years, 1 month ago (2012-10-31 00:44:30 UTC) #8
erikwright (departed)
Note that this might fail when run under the chrome_frame_net_tests. If so, you should just ...
8 years, 1 month ago (2012-10-31 00:46:03 UTC) #9
pauljensen
Erik, the test did in fact fail with chrome frame, so I disabled it. PTAL ...
8 years, 1 month ago (2012-10-31 16:58:58 UTC) #10
pauljensen
Markus, my apologies for accidentally calling you Mark. On 2012/10/31 16:58:58, pauljensen wrote: > Mark, ...
8 years, 1 month ago (2012-10-31 17:02:13 UTC) #11
erikwright (departed)
fake_external_tab.cc LGTM
8 years, 1 month ago (2012-10-31 17:08:50 UTC) #12
markusheintz_
browsing_data_helper changed LGTM
8 years, 1 month ago (2012-10-31 19:07:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/11339032/12001
8 years, 1 month ago (2012-10-31 20:49:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/11339032/19002
8 years, 1 month ago (2012-10-31 21:56:45 UTC) #15
commit-bot: I haz the power
8 years, 1 month ago (2012-11-01 10:29:18 UTC) #16
Change committed as 165323

Powered by Google App Engine
This is Rietveld 408576698