| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "services/preferences/public/cpp/pref_store_client.h" | 5 #include "services/preferences/public/cpp/pref_store_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 namespace prefs { | 9 namespace prefs { |
| 10 | 10 |
| 11 PrefStoreClient::PrefStoreClient(mojom::PrefStoreConnectionPtr connection) { | 11 PrefStoreClient::PrefStoreClient(mojom::PrefStoreConnectionPtr connection) { |
| 12 Init(std::move(connection->initial_prefs), connection->is_initialized, | 12 Init(&connection->initial_prefs, connection->is_initialized, |
| 13 std::move(connection->observer)); | 13 std::move(connection->observer)); |
| 14 } | 14 } |
| 15 | 15 |
| 16 PrefStoreClient::~PrefStoreClient() = default; | 16 PrefStoreClient::~PrefStoreClient() = default; |
| 17 | 17 |
| 18 } // namespace prefs | 18 } // namespace prefs |
| OLD | NEW |