| 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 2a9c2a1c1e13dad4c77079059a9124fde519a405..e10a6b22d6d4dfb33609fe0ad265ed6e30f67b50 100644
|
| --- a/components/version_ui/version_handler_helper.cc
|
| +++ b/components/version_ui/version_handler_helper.cc
|
| @@ -13,7 +13,7 @@
|
|
|
| namespace version_ui {
|
|
|
| -scoped_ptr<base::Value> GetVariationsList() {
|
| +std::vector<std::string> GetVariations() {
|
| std::vector<std::string> variations;
|
| #if !defined(NDEBUG)
|
| base::FieldTrial::ActiveGroups active_groups;
|
| @@ -31,7 +31,12 @@ scoped_ptr<base::Value> GetVariationsList() {
|
| // In release mode, display the hashes only.
|
| variations::GetFieldTrialActiveGroupIdsAsStrings(&variations);
|
| #endif
|
| + return variations;
|
| +}
|
|
|
| +#if defined(OS_IOS)
|
| +scoped_ptr<base::Value> GetVariationsList() {
|
| + std::vector<std::string> variations = GetVariations();
|
| scoped_ptr<base::ListValue> variations_list(new base::ListValue);
|
| for (std::vector<std::string>::const_iterator it = variations.begin();
|
| it != variations.end(); ++it) {
|
| @@ -40,5 +45,6 @@ scoped_ptr<base::Value> GetVariationsList() {
|
|
|
| return variations_list.Pass();
|
| }
|
| +#endif
|
|
|
| } // namespace version_ui
|
|
|