| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ios/crnet/sdch_owner_pref_storage.h" | 5 #include "ios/crnet/sdch_owner_pref_storage.h" |
| 6 | 6 |
| 7 #include "base/prefs/persistent_pref_store.h" | |
| 8 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "components/prefs/persistent_pref_store.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 static const char kStorageKey[] = "SDCH"; | 12 static const char kStorageKey[] = "SDCH"; |
| 13 | 13 |
| 14 } // namespace | 14 } // namespace |
| 15 | 15 |
| 16 SdchOwnerPrefStorage::SdchOwnerPrefStorage(PersistentPrefStore* storage) | 16 SdchOwnerPrefStorage::SdchOwnerPrefStorage(PersistentPrefStore* storage) |
| 17 : storage_(storage), | 17 : storage_(storage), |
| 18 storage_key_(kStorageKey), | 18 storage_key_(kStorageKey), |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 storage_->RemoveObserver(this); | 98 storage_->RemoveObserver(this); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void SdchOwnerPrefStorage::OnPrefValueChanged(const std::string& key) { | 101 void SdchOwnerPrefStorage::OnPrefValueChanged(const std::string& key) { |
| 102 } | 102 } |
| 103 | 103 |
| 104 void SdchOwnerPrefStorage::OnInitializationCompleted(bool succeeded) { | 104 void SdchOwnerPrefStorage::OnInitializationCompleted(bool succeeded) { |
| 105 DCHECK(init_observer_); | 105 DCHECK(init_observer_); |
| 106 init_observer_->OnPrefStorageInitializationComplete(succeeded); | 106 init_observer_->OnPrefStorageInitializationComplete(succeeded); |
| 107 } | 107 } |
| OLD | NEW |