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

Side by Side Diff: components/user_prefs/tracked/pref_service_hash_store_contents.h

Issue 1908143002: Convert //components/user_prefs from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore the rightful glory of <windows.h> Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_
6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ 6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 static void RegisterPrefs(PrefRegistrySimple* registry); 51 static void RegisterPrefs(PrefRegistrySimple* registry);
52 52
53 // Deletes stored hashes for all profiles from |pref_service|. 53 // Deletes stored hashes for all profiles from |pref_service|.
54 static void ResetAllPrefHashStores(PrefService* pref_service); 54 static void ResetAllPrefHashStores(PrefService* pref_service);
55 55
56 // HashStoreContents implementation 56 // HashStoreContents implementation
57 std::string hash_store_id() const override; 57 std::string hash_store_id() const override;
58 void Reset() override; 58 void Reset() override;
59 bool IsInitialized() const override; 59 bool IsInitialized() const override;
60 const base::DictionaryValue* GetContents() const override; 60 const base::DictionaryValue* GetContents() const override;
61 scoped_ptr<MutableDictionary> GetMutableContents() override; 61 std::unique_ptr<MutableDictionary> GetMutableContents() override;
62 std::string GetSuperMac() const override; 62 std::string GetSuperMac() const override;
63 void SetSuperMac(const std::string& super_mac) override; 63 void SetSuperMac(const std::string& super_mac) override;
64 64
65 private: 65 private:
66 const std::string hash_store_id_; 66 const std::string hash_store_id_;
67 PrefService* pref_service_; 67 PrefService* pref_service_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents); 69 DISALLOW_COPY_AND_ASSIGN(PrefServiceHashStoreContents);
70 }; 70 };
71 71
72 #endif // COMPONENTS_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_ 72 #endif // COMPONENTS_PREFS_TRACKED_PREF_SERVICE_HASH_STORE_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698