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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_store_file.h

Issue 744183002: More explicit thread checking in SafeBrowsingDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a3_deadcode
Patch Set: crbug.com/338486 forces thread-checks to be disabled in ~SafeBrowsingStoreFile() 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
Index: chrome/browser/safe_browsing/safe_browsing_store_file.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.h b/chrome/browser/safe_browsing/safe_browsing_store_file.h
index 7497c9bfcb4795c64afc19703d0e4deb6b05e2b6..2c2e04cef76f3194d64a166e2bd53d2fbaa1960f 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store_file.h
+++ b/chrome/browser/safe_browsing/safe_browsing_store_file.h
@@ -13,6 +13,7 @@
#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
+#include "base/threading/non_thread_safe.h"
// Implement SafeBrowsingStore in terms of a flat file. The file
// format is pretty literal:
@@ -122,7 +123,8 @@
// - Delete original file.
// - Rename temp file to original filename.
-class SafeBrowsingStoreFile : public SafeBrowsingStore {
+class SafeBrowsingStoreFile : public SafeBrowsingStore,
+ public base::NonThreadSafe {
public:
SafeBrowsingStoreFile();
~SafeBrowsingStoreFile() override;

Powered by Google App Engine
This is Rietveld 408576698