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

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

Issue 654653002: Enables the user to select multiple languages for spellchecking (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a regression. Created 5 years, 9 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
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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 }, 2186 },
2187 { 2187 {
2188 "use-sync-sandbox", 2188 "use-sync-sandbox",
2189 IDS_FLAGS_SYNC_SANDBOX_NAME, 2189 IDS_FLAGS_SYNC_SANDBOX_NAME,
2190 IDS_FLAGS_SYNC_SANDBOX_DESCRIPTION, 2190 IDS_FLAGS_SYNC_SANDBOX_DESCRIPTION,
2191 kOsAll, 2191 kOsAll,
2192 SINGLE_VALUE_TYPE_AND_VALUE( 2192 SINGLE_VALUE_TYPE_AND_VALUE(
2193 switches::kSyncServiceURL, 2193 switches::kSyncServiceURL,
2194 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha") 2194 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")
2195 }, 2195 },
2196 #if defined(ENABLE_SPELLCHECK) && \
2197 (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS))
2198 {
2199 "enable-multilingual-spellchecker",
2200 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_NAME,
2201 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_DESCRIPTION,
2202 kOsWin | kOsLinux | kOsCrOS,
2203 SINGLE_VALUE_TYPE(switches::kEnableMultilingualSpellChecker)
2204 },
2205 #endif // defined(ENABLE_SPELLCHECK) && (defined(OS_LINUX) || defined(OS_WIN)
2206 // || defined(OS_CHROMEOS))
2196 2207
2197 // NOTE: Adding new command-line switches requires adding corresponding 2208 // NOTE: Adding new command-line switches requires adding corresponding
2198 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2209 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2199 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2210 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2200 }; 2211 };
2201 2212
2202 const Experiment* experiments = kExperiments; 2213 const Experiment* experiments = kExperiments;
2203 size_t num_experiments = arraysize(kExperiments); 2214 size_t num_experiments = arraysize(kExperiments);
2204 2215
2205 // Stores and encapsulates the little state that about:flags has. 2216 // Stores and encapsulates the little state that about:flags has.
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 } 2800 }
2790 2801
2791 const Experiment* GetExperiments(size_t* count) { 2802 const Experiment* GetExperiments(size_t* count) {
2792 *count = num_experiments; 2803 *count = num_experiments;
2793 return experiments; 2804 return experiments;
2794 } 2805 }
2795 2806
2796 } // namespace testing 2807 } // namespace testing
2797 2808
2798 } // namespace about_flags 2809 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698