From 402cfefb2da2e34d41f6ec5b84cf3b4dbfbfc9c7 Mon Sep 17 00:00:00 2001 From: "stoyan@chromium.org" Date: Tue, 20 Apr 2010 16:26:20 +0000 Subject: Handle cookie requests in BackgroundThread. Enable the unload event test. BUG=40814 TEST=unload event test Review URL: http://codereview.chromium.org/1629027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45042 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/urlmon_url_request.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome_frame/urlmon_url_request.cc') diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc index 3c38b0c..b1d082f 100644 --- a/chrome_frame/urlmon_url_request.cc +++ b/chrome_frame/urlmon_url_request.cc @@ -924,7 +924,7 @@ net::Error UrlmonUrlRequest::HresultToNetError(HRESULT hr) { PluginUrlRequestManager::ThreadSafeFlags UrlmonUrlRequestManager::GetThreadSafeFlags() { - return PluginUrlRequestManager::NOT_THREADSAFE; + return PluginUrlRequestManager::COOKIE_REQUEST_THREADSAFE; } void UrlmonUrlRequestManager::SetInfoForUrl(const std::wstring& url, @@ -1180,6 +1180,8 @@ UrlmonUrlRequestManager::~UrlmonUrlRequestManager() { void UrlmonUrlRequestManager::AddPrivacyDataForUrl( const std::string& url, const std::string& policy_ref, int32 flags) { + AutoLock lock(privacy_info_lock_); + bool fire_privacy_event = false; if (privacy_info_.privacy_records.size() == 0) -- cgit v1.1