| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ | 6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "components/version_info/version_info.h" | 10 #include "components/version_info/version_info.h" |
| 11 | 11 |
| 12 class SigninManagerBase; | |
| 13 | |
| 14 namespace base { | 12 namespace base { |
| 15 class DictionaryValue; | 13 class DictionaryValue; |
| 16 } | 14 } |
| 17 | 15 |
| 18 namespace syncer { | 16 namespace syncer { |
| 19 | 17 |
| 20 class SyncService; | 18 class SyncService; |
| 21 | 19 |
| 22 namespace sync_ui_util { | 20 namespace sync_ui_util { |
| 23 | 21 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 extern const char kOnReceivedListOfTypes[]; | 59 extern const char kOnReceivedListOfTypes[]; |
| 62 extern const char kStatus[]; | 60 extern const char kStatus[]; |
| 63 extern const char kTypes[]; | 61 extern const char kTypes[]; |
| 64 extern const char kUpdate[]; | 62 extern const char kUpdate[]; |
| 65 | 63 |
| 66 // This function returns a DictionaryValue which contains all the information | 64 // This function returns a DictionaryValue which contains all the information |
| 67 // required to populate the 'About' tab of about:sync. | 65 // required to populate the 'About' tab of about:sync. |
| 68 // Note that |service| may be null. | 66 // Note that |service| may be null. |
| 69 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation( | 67 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation( |
| 70 SyncService* service, | 68 SyncService* service, |
| 71 SigninManagerBase* signin, | |
| 72 version_info::Channel channel); | 69 version_info::Channel channel); |
| 73 | 70 |
| 74 } // namespace sync_ui_util | 71 } // namespace sync_ui_util |
| 75 | 72 |
| 76 } // namespace syncer | 73 } // namespace syncer |
| 77 | 74 |
| 78 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ | 75 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ |
| OLD | NEW |