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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/Database.h

Issue 1694893002: Avoid data race on Database::m_opened. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid casts Created 4 years, 10 months 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 | third_party/WebKit/Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webdatabase/Database.h
diff --git a/third_party/WebKit/Source/modules/webdatabase/Database.h b/third_party/WebKit/Source/modules/webdatabase/Database.h
index d973a7369aee267ed145bf297ea1162bc8dc031a..d76bc19ebe79162516c156176c9e1fdd25b1321e 100644
--- a/third_party/WebKit/Source/modules/webdatabase/Database.h
+++ b/third_party/WebKit/Source/modules/webdatabase/Database.h
@@ -81,7 +81,7 @@ public:
SQLTransactionErrorCallback*,
VoidCallback* successCallback);
- bool opened() const { return m_opened; }
+ bool opened();
bool isNew() const { return m_new; }
SecurityOrigin* securityOrigin() const;
@@ -161,7 +161,7 @@ private:
String m_filename;
DatabaseGuid m_guid;
- bool m_opened;
+ int m_opened;
bool m_new;
SQLiteDatabase m_sqliteDatabase;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698