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

Issue 12387028: Fix for CookieManager init race condition (Closed)

Created:
7 years, 9 months ago by joth
Modified:
7 years, 9 months ago
Reviewers:
Kristian Monsen, boliu
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Fix for CookieManager init race condition As the cookiemanager can be used at any time from any thread, we need to ensure it is constructed early in startup, synchronously to the AndroidBrowserProcess.init() call. This rolls back a little of the change made in http://src.chromium.org/viewvc/chrome/trunk/src/android_webview/browser/net/init_native_callback.h?view=diff&r1=174173&r2=174174 (intenral issue b/8249158) BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185462

Patch Set 1 #

Total comments: 3

Patch Set 2 : pass CookieManager through the chain instead #

Patch Set 3 : added a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -19 lines) Patch
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M android_webview/browser/net/init_native_callback.h View 1 1 chunk +8 lines, -6 lines 0 comments Download
M android_webview/native/cookie_manager.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/native/cookie_manager.cc View 1 4 chunks +5 lines, -6 lines 0 comments Download
M android_webview/native/net_init_native_callback.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
joth
7 years, 9 months ago (2013-03-01 00:11:02 UTC) #1
boliu
lgtm
7 years, 9 months ago (2013-03-01 00:13:11 UTC) #2
boliu
Actually I take it back a bit. This will make everything non-lazy, so there is ...
7 years, 9 months ago (2013-03-01 00:19:06 UTC) #3
Kristian Monsen
https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode76 android_webview/browser/net/aw_url_request_context_getter.cc:76: DidCreateURLRequestContextOnIOThread(url_request_context_.get()); Can this safely be used before the job ...
7 years, 9 months ago (2013-03-01 00:19:08 UTC) #4
joth
https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode76 android_webview/browser/net/aw_url_request_context_getter.cc:76: DidCreateURLRequestContextOnIOThread(url_request_context_.get()); On 2013/03/01 00:19:06, boliu wrote: > This is ...
7 years, 9 months ago (2013-03-01 00:28:13 UTC) #5
Kristian Monsen
On 2013/03/01 00:28:13, joth wrote: > https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc > File android_webview/browser/net/aw_url_request_context_getter.cc (right): > > https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode76 > ...
7 years, 9 months ago (2013-03-01 00:30:08 UTC) #6
joth
On 2013/03/01 00:30:08, Kristian Monsen wrote: > On 2013/03/01 00:28:13, joth wrote: > > > ...
7 years, 9 months ago (2013-03-01 00:54:57 UTC) #7
Kristian Monsen
lgtm
7 years, 9 months ago (2013-03-01 01:00:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/12387028/5
7 years, 9 months ago (2013-03-01 01:11:48 UTC) #9
boliu
On 2013/03/01 00:28:13, joth wrote: > https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc > File android_webview/browser/net/aw_url_request_context_getter.cc (right): > > https://codereview.chromium.org/12387028/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode76 > ...
7 years, 9 months ago (2013-03-01 01:32:15 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-01 04:26:16 UTC) #11
Message was sent while issue was closed.
Change committed as 185462

Powered by Google App Engine
This is Rietveld 408576698