Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 13488014: Translate: Adding a flag to enable "alpha language" translation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698