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

Unified Diff: chrome/browser/strict_transport_security_persister.h

Issue 399016: Fix race conditions where an object's constructor uses PostTask on itself. T... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/strict_transport_security_persister.h
===================================================================
--- chrome/browser/strict_transport_security_persister.h (revision 32148)
+++ chrome/browser/strict_transport_security_persister.h (working copy)
@@ -42,8 +42,9 @@
: public base::RefCountedThreadSafe<StrictTransportSecurityPersister>,
public net::StrictTransportSecurityState::Delegate {
public:
- StrictTransportSecurityPersister(net::StrictTransportSecurityState* state,
- const FilePath& profile_path);
+ StrictTransportSecurityPersister();
+ void Initialize(net::StrictTransportSecurityState* state,
+ const FilePath& profile_path);
// Called by the StrictTransportSecurityState when it changes its state.
virtual void StateIsDirty(net::StrictTransportSecurityState*);
@@ -68,7 +69,7 @@
scoped_refptr<net::StrictTransportSecurityState>
strict_transport_security_state_;
// The path to the file in which we store the serialised state.
- const FilePath state_file_;
+ FilePath state_file_;
};
#endif // CHROME_BROWSER_STRICT_TRANSPORT_SECURITY_PERSISTER_H_

Powered by Google App Engine
This is Rietveld 408576698