Chromium Code Reviews| Index: ceee/ie/plugin/bho/cookie_accountant.cc | 
| =================================================================== | 
| --- ceee/ie/plugin/bho/cookie_accountant.cc (revision 67716) | 
| +++ ceee/ie/plugin/bho/cookie_accountant.cc (working copy) | 
| @@ -35,6 +35,7 @@ | 
| CookieAccountant* CookieAccountant::singleton_instance_ = NULL; | 
| CookieAccountant::~CookieAccountant() { | 
| + AutoLock lock(lock_); | 
| 
 
MAD
2010/11/30 22:35:55
I don't think a lock is necessary in the destructo
 
Cindy Lau
2010/12/01 01:33:15
Done.
 
 | 
| if (internet_set_cookie_ex_a_patch_.is_patched()) | 
| internet_set_cookie_ex_a_patch_.Unpatch(); | 
| if (internet_set_cookie_ex_w_patch_.is_patched()) | 
| @@ -222,6 +223,7 @@ | 
| } | 
| void CookieAccountant::PatchWininetFunctions() { | 
| + AutoLock lock(lock_); | 
| 
 
MAD
2010/11/30 22:35:55
I don't think it's a good idea to call Patch from
 
Cindy Lau
2010/12/01 01:33:15
Okay, I rewrote it not to block other threads comi
 
MAD
2010/12/01 02:14:43
I think the chances are pretty slim since IE still
 
Sigurður Ásgeirsson
2010/12/01 14:36:40
is_patched() is an inline accessor to a pointer, w
 
 | 
| if (!internet_set_cookie_ex_a_patch_.is_patched()) { | 
| DWORD error = internet_set_cookie_ex_a_patch_.Patch( | 
| kMsHtmlModuleName, kWinInetModuleName, |