| OLD | NEW |
| 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 #include "components/sync_driver/local_device_info_provider_mock.h" | 5 #include "components/sync_driver/local_device_info_provider_mock.h" |
| 6 | 6 |
| 7 namespace sync_driver { | 7 namespace sync_driver { |
| 8 | 8 |
| 9 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock() | 9 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock() |
| 10 : is_initialized_(false) {} | 10 : is_initialized_(false) {} |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 void LocalDeviceInfoProviderMock::SetInitialized(bool is_initialized) { | 56 void LocalDeviceInfoProviderMock::SetInitialized(bool is_initialized) { |
| 57 is_initialized_ = is_initialized; | 57 is_initialized_ = is_initialized; |
| 58 if (is_initialized_) { | 58 if (is_initialized_) { |
| 59 callback_list_.Notify(); | 59 callback_list_.Notify(); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace sync_driver | 63 } // namespace sync_driver |
| 64 | |
| OLD | NEW |