| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/prefs/pref_service.h" | 5 #include "base/prefs/pref_service.h" |
| 6 #include "base/prefs/testing_pref_store.h" | 6 #include "base/prefs/testing_pref_store.h" |
| 7 #include "chrome/browser/signin/signin_manager_factory.h" | 7 #include "chrome/browser/signin/signin_manager_factory.h" |
| 8 #include "chrome/browser/sync/profile_sync_service_mock.h" | 8 #include "chrome/browser/sync/profile_sync_service_mock.h" |
| 9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 return profile; | 34 return profile; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // static | 37 // static |
| 38 BrowserContextKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( | 38 BrowserContextKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( |
| 39 content::BrowserContext* profile) { | 39 content::BrowserContext* profile) { |
| 40 return new ProfileSyncServiceMock(static_cast<Profile*>(profile)); | 40 return new ProfileSyncServiceMock(static_cast<Profile*>(profile)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 ScopedVector<browser_sync::DeviceInfo> | 43 ScopedVector<browser_sync::DeviceInfo> |
| 44 ProfileSyncServiceMock::GetAllSignedInDevices() const { | 44 ProfileSyncServiceMock::GetAllSignedinDevices() const { |
| 45 ScopedVector<browser_sync::DeviceInfo> devices; | 45 ScopedVector<browser_sync::DeviceInfo> devices; |
| 46 std::vector<browser_sync::DeviceInfo*>* device_vector = | 46 std::vector<browser_sync::DeviceInfo*>* device_vector = |
| 47 GetAllSignedInDevicesMock(); | 47 GetAllSignedinDevicesMock(); |
| 48 devices.get() = *device_vector; | 48 devices.get() = *device_vector; |
| 49 return devices.Pass(); | 49 return devices.Pass(); |
| 50 } | 50 } |
| 51 | 51 |
| OLD | NEW |