| Index: components/version_ui/version_handler_helper.cc
|
| diff --git a/components/version_ui/version_handler_helper.cc b/components/version_ui/version_handler_helper.cc
|
| index b24c03c6f76cf85979fb89867df7e4e0b49e97fe..10f525bc6c017f4942ec6f4f14ff3f1c3e373be5 100644
|
| --- a/components/version_ui/version_handler_helper.cc
|
| +++ b/components/version_ui/version_handler_helper.cc
|
| @@ -14,7 +14,7 @@
|
|
|
| namespace version_ui {
|
|
|
| -std::unique_ptr<base::Value> GetVariationsList() {
|
| +std::vector<std::string> GetVariations() {
|
| std::vector<std::string> variations;
|
| #if !defined(NDEBUG)
|
| base::FieldTrial::ActiveGroups active_groups;
|
| @@ -32,7 +32,12 @@ std::unique_ptr<base::Value> GetVariationsList() {
|
| // In release mode, display the hashes only.
|
| variations::GetFieldTrialActiveGroupIdsAsStrings(&variations);
|
| #endif
|
| + return variations;
|
| +}
|
|
|
| +#if defined(OS_IOS)
|
| +std::unique_ptr<base::Value> GetVariationsList() {
|
| + std::vector<std::string> variations = GetVariations();
|
| std::unique_ptr<base::ListValue> variations_list(new base::ListValue);
|
| for (std::vector<std::string>::const_iterator it = variations.begin();
|
| it != variations.end(); ++it) {
|
| @@ -41,5 +46,6 @@ std::unique_ptr<base::Value> GetVariationsList() {
|
|
|
| return std::move(variations_list);
|
| }
|
| +#endif
|
|
|
| } // namespace version_ui
|
|
|