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

Issue 1428673003: Injecting an NSHTTPCookieStorage dependency into CookieStoreIOS (Closed)

Created:
5 years, 1 month ago by shreyasv1
Modified:
5 years, 1 month ago
Reviewers:
droger, stuartmorgan
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Injecting an NSHTTPCookieStorage dependency into CookieStoreIOS In Chrome we plan to use a subclass of NSHTTPCookieStorage as we plan to implement an in-memory only cookie store (as opposed to the default implementation in NSHTTPCookieStorage which passes it to CFNetwork). I briefly considered doing a subclass of CookieStore that has an NSHTTPCookieStorage as the backend. But I ended up re-implementing a lot of the logic from CookieStoreIOS (such as the conversion between a canonical cookie and an NSHTTPCookie) Injecting this dependency will avoid unnecessary code duplication. BUG=542866 Committed: https://crrev.com/1ae3c3a3b26dc42489c0209bbf8ab12738094857 Cr-Commit-Position: refs/heads/master@{#357603}

Patch Set 1 #

Total comments: 5

Patch Set 2 : y #

Total comments: 4

Patch Set 3 : y #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -44 lines) Patch
M ios/crnet/crnet_environment.mm View 1 chunk +2 lines, -1 line 0 comments Download
M ios/net/cookies/cookie_store_ios.h View 1 2 4 chunks +24 lines, -8 lines 0 comments Download
M ios/net/cookies/cookie_store_ios.mm View 1 2 17 chunks +52 lines, -35 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
shreyasv1
+Stuart in case he can turn it around faster.
5 years, 1 month ago (2015-10-29 17:55:53 UTC) #2
droger
The code LGTM (with the comment below). I don't know how this is going to ...
5 years, 1 month ago (2015-10-30 17:02:51 UTC) #6
shreyasv1
https://codereview.chromium.org/1428673003/diff/1/ios/net/cookies/cookie_store_ios.mm File ios/net/cookies/cookie_store_ios.mm (right): https://codereview.chromium.org/1428673003/diff/1/ios/net/cookies/cookie_store_ios.mm#newcode303 ios/net/cookies/cookie_store_ios.mm:303: NSHTTPCookieStorage* store = [NSHTTPCookieStorage sharedHTTPCookieStorage]; On 2015/10/30 17:02:51, droger ...
5 years, 1 month ago (2015-11-02 22:21:44 UTC) #7
droger
https://codereview.chromium.org/1428673003/diff/1/ios/net/cookies/cookie_store_ios.mm File ios/net/cookies/cookie_store_ios.mm (right): https://codereview.chromium.org/1428673003/diff/1/ios/net/cookies/cookie_store_ios.mm#newcode303 ios/net/cookies/cookie_store_ios.mm:303: NSHTTPCookieStorage* store = [NSHTTPCookieStorage sharedHTTPCookieStorage]; On 2015/11/02 22:21:44, shreyasv1 ...
5 years, 1 month ago (2015-11-03 09:49:00 UTC) #8
droger
https://codereview.chromium.org/1428673003/diff/20001/ios/net/cookies/cookie_store_ios.h File ios/net/cookies/cookie_store_ios.h (right): https://codereview.chromium.org/1428673003/diff/20001/ios/net/cookies/cookie_store_ios.h#newcode89 ios/net/cookies/cookie_store_ios.h:89: // as its default backend. Nit: While you are ...
5 years, 1 month ago (2015-11-03 10:24:08 UTC) #9
shreyasv1
https://codereview.chromium.org/1428673003/diff/20001/ios/net/cookies/cookie_store_ios.h File ios/net/cookies/cookie_store_ios.h (right): https://codereview.chromium.org/1428673003/diff/20001/ios/net/cookies/cookie_store_ios.h#newcode89 ios/net/cookies/cookie_store_ios.h:89: // as its default backend. On 2015/11/03 10:24:07, droger ...
5 years, 1 month ago (2015-11-03 18:15:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428673003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428673003/40001
5 years, 1 month ago (2015-11-03 19:36:03 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-03 20:13:20 UTC) #14
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 20:14:39 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1ae3c3a3b26dc42489c0209bbf8ab12738094857
Cr-Commit-Position: refs/heads/master@{#357603}

Powered by Google App Engine
This is Rietveld 408576698