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