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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_database.cc

Issue 793663003: Fix a race condition in SafeBrowsingDatabaseNew::IsCsdWhitelistKillSwitchOn() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2_threadchecks_rebased
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_database.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.cc b/chrome/browser/safe_browsing/safe_browsing_database.cc
index 920af7c338987729cf575eb41b6bbf49ad42ab48..5160c654fca8f5618ba01ce208b4ddfee1ea0d8a 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database.cc
@@ -1696,5 +1696,6 @@ bool SafeBrowsingDatabaseNew::IsMalwareIPMatchKillSwitchOn() {
}
bool SafeBrowsingDatabaseNew::IsCsdWhitelistKillSwitchOn() {
+ base::AutoLock locked(lookup_lock_);
return csd_whitelist_.second;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698