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

Side by Side Diff: services/preferences/tracked/registry_hash_store_contents_win.h

Issue 2926453002: Fix a race condition in ~RegistryHashStoreContentsWin (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_PREFERENCES_TRACKED_REGISTRY_HASH_STORE_CONTENTS_WIN_H_ 5 #ifndef SERVICES_PREFERENCES_TRACKED_REGISTRY_HASH_STORE_CONTENTS_WIN_H_
6 #define SERVICES_PREFERENCES_TRACKED_REGISTRY_HASH_STORE_CONTENTS_WIN_H_ 6 #define SERVICES_PREFERENCES_TRACKED_REGISTRY_HASH_STORE_CONTENTS_WIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "services/preferences/tracked/hash_store_contents.h" 10 #include "services/preferences/tracked/hash_store_contents.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 std::string GetSuperMac() const override; 43 std::string GetSuperMac() const override;
44 void SetSuperMac(const std::string& super_mac) override; 44 void SetSuperMac(const std::string& super_mac) override;
45 45
46 private: 46 private:
47 // Helper constructor for |MakeCopy|. 47 // Helper constructor for |MakeCopy|.
48 explicit RegistryHashStoreContentsWin( 48 explicit RegistryHashStoreContentsWin(
49 const RegistryHashStoreContentsWin& other); 49 const RegistryHashStoreContentsWin& other);
50 50
51 const base::string16 preference_key_name_; 51 const base::string16 preference_key_name_;
52 const bool reset_on_delete_; 52 const bool reset_on_delete_;
53 const bool is_for_test_scoped_dir_;
53 }; 54 };
54 55
55 #endif // SERVICES_PREFERENCES_TRACKED_REGISTRY_HASH_STORE_CONTENTS_WIN_H_ 56 #endif // SERVICES_PREFERENCES_TRACKED_REGISTRY_HASH_STORE_CONTENTS_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698