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 "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <iterator> | 10 #include <iterator> |
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 #endif | 1294 #endif |
1295 #if defined(ENABLE_GOOGLE_NOW) | 1295 #if defined(ENABLE_GOOGLE_NOW) |
1296 { | 1296 { |
1297 "enable-google-now", | 1297 "enable-google-now", |
1298 IDS_FLAGS_ENABLE_GOOGLE_NOW_INTEGRATION_NAME, | 1298 IDS_FLAGS_ENABLE_GOOGLE_NOW_INTEGRATION_NAME, |
1299 IDS_FLAGS_ENABLE_GOOGLE_NOW_INTEGRATION_DESCRIPTION, | 1299 IDS_FLAGS_ENABLE_GOOGLE_NOW_INTEGRATION_DESCRIPTION, |
1300 kOsWin | kOsCrOS, | 1300 kOsWin | kOsCrOS, |
1301 SINGLE_VALUE_TYPE(switches::kEnableGoogleNowIntegration) | 1301 SINGLE_VALUE_TYPE(switches::kEnableGoogleNowIntegration) |
1302 }, | 1302 }, |
1303 #endif | 1303 #endif |
| 1304 { |
| 1305 "enable-translate-alpha-languages", |
| 1306 IDS_FLAGS_ENABLE_TRANSLATE_ALPHA_LANGUAGES_NAME, |
| 1307 IDS_FLAGS_ENABLE_TRANSLATE_ALPHA_LANGUAGES_DESCRIPTION, |
| 1308 kOsAll, |
| 1309 SINGLE_VALUE_TYPE(switches::kEnableTranslateAlphaLanguages) |
| 1310 }, |
1304 }; | 1311 }; |
1305 | 1312 |
1306 const Experiment* experiments = kExperiments; | 1313 const Experiment* experiments = kExperiments; |
1307 size_t num_experiments = arraysize(kExperiments); | 1314 size_t num_experiments = arraysize(kExperiments); |
1308 | 1315 |
1309 // Stores and encapsulates the little state that about:flags has. | 1316 // Stores and encapsulates the little state that about:flags has. |
1310 class FlagsState { | 1317 class FlagsState { |
1311 public: | 1318 public: |
1312 FlagsState() : needs_restart_(false) {} | 1319 FlagsState() : needs_restart_(false) {} |
1313 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1320 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 } | 1801 } |
1795 | 1802 |
1796 const Experiment* GetExperiments(size_t* count) { | 1803 const Experiment* GetExperiments(size_t* count) { |
1797 *count = num_experiments; | 1804 *count = num_experiments; |
1798 return experiments; | 1805 return experiments; |
1799 } | 1806 } |
1800 | 1807 |
1801 } // namespace testing | 1808 } // namespace testing |
1802 | 1809 |
1803 } // namespace about_flags | 1810 } // namespace about_flags |
OLD | NEW |