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

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

Issue 2284583002: [Android] Add AndroidSpellChecker feature to allow for gradual rollout using finch. (Closed)
Patch Set: Created 4 years, 3 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "components/ntp_snippets/features.h" 47 #include "components/ntp_snippets/features.h"
48 #include "components/ntp_snippets/ntp_snippets_constants.h" 48 #include "components/ntp_snippets/ntp_snippets_constants.h"
49 #include "components/ntp_tiles/switches.h" 49 #include "components/ntp_tiles/switches.h"
50 #include "components/offline_pages/offline_page_feature.h" 50 #include "components/offline_pages/offline_page_feature.h"
51 #include "components/omnibox/browser/omnibox_switches.h" 51 #include "components/omnibox/browser/omnibox_switches.h"
52 #include "components/password_manager/core/common/password_manager_features.h" 52 #include "components/password_manager/core/common/password_manager_features.h"
53 #include "components/proximity_auth/switches.h" 53 #include "components/proximity_auth/switches.h"
54 #include "components/search/search_switches.h" 54 #include "components/search/search_switches.h"
55 #include "components/security_state/switches.h" 55 #include "components/security_state/switches.h"
56 #include "components/signin/core/common/signin_switches.h" 56 #include "components/signin/core/common/signin_switches.h"
57 #include "components/spellcheck/common/spellcheck_features.h"
57 #include "components/spellcheck/common/spellcheck_switches.h" 58 #include "components/spellcheck/common/spellcheck_switches.h"
58 #include "components/ssl_config/ssl_config_switches.h" 59 #include "components/ssl_config/ssl_config_switches.h"
59 #include "components/sync/driver/sync_driver_switches.h" 60 #include "components/sync/driver/sync_driver_switches.h"
60 #include "components/tracing/common/tracing_switches.h" 61 #include "components/tracing/common/tracing_switches.h"
61 #include "components/translate/core/browser/translate_manager.h" 62 #include "components/translate/core/browser/translate_manager.h"
62 #include "components/translate/core/browser/translate_prefs.h" 63 #include "components/translate/core/browser/translate_prefs.h"
63 #include "components/version_info/version_info.h" 64 #include "components/version_info/version_info.h"
64 #include "content/public/browser/user_metrics.h" 65 #include "content/public/browser/user_metrics.h"
65 #include "content/public/common/content_features.h" 66 #include "content/public/common/content_features.h"
66 #include "content/public/common/content_switches.h" 67 #include "content/public/common/content_switches.h"
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 {"enable-devtools-experiments", IDS_FLAGS_DEVTOOLS_EXPERIMENTS_NAME, 850 {"enable-devtools-experiments", IDS_FLAGS_DEVTOOLS_EXPERIMENTS_NAME,
850 IDS_FLAGS_DEVTOOLS_EXPERIMENTS_DESCRIPTION, kOsDesktop, 851 IDS_FLAGS_DEVTOOLS_EXPERIMENTS_DESCRIPTION, kOsDesktop,
851 SINGLE_VALUE_TYPE(switches::kEnableDevToolsExperiments)}, 852 SINGLE_VALUE_TYPE(switches::kEnableDevToolsExperiments)},
852 {"silent-debugger-extension-api", 853 {"silent-debugger-extension-api",
853 IDS_FLAGS_SILENT_DEBUGGER_EXTENSION_API_NAME, 854 IDS_FLAGS_SILENT_DEBUGGER_EXTENSION_API_NAME,
854 IDS_FLAGS_SILENT_DEBUGGER_EXTENSION_API_DESCRIPTION, kOsDesktop, 855 IDS_FLAGS_SILENT_DEBUGGER_EXTENSION_API_DESCRIPTION, kOsDesktop,
855 SINGLE_VALUE_TYPE(switches::kSilentDebuggerExtensionAPI)}, 856 SINGLE_VALUE_TYPE(switches::kSilentDebuggerExtensionAPI)},
856 #if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID) 857 #if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
857 {"enable-android-spellchecker", IDS_OPTIONS_ENABLE_SPELLCHECK, 858 {"enable-android-spellchecker", IDS_OPTIONS_ENABLE_SPELLCHECK,
858 IDS_OPTIONS_ENABLE_ANDROID_SPELLCHECKER_DESCRIPTION, kOsAndroid, 859 IDS_OPTIONS_ENABLE_ANDROID_SPELLCHECKER_DESCRIPTION, kOsAndroid,
859 SINGLE_VALUE_TYPE(spellcheck::switches::kEnableAndroidSpellChecker)}, 860 FEATURE_VALUE_TYPE(spellcheck::kAndroidSpellChecker)},
860 #endif 861 #endif
861 {"enable-scroll-prediction", IDS_FLAGS_SCROLL_PREDICTION_NAME, 862 {"enable-scroll-prediction", IDS_FLAGS_SCROLL_PREDICTION_NAME,
862 IDS_FLAGS_SCROLL_PREDICTION_DESCRIPTION, kOsDesktop, 863 IDS_FLAGS_SCROLL_PREDICTION_DESCRIPTION, kOsDesktop,
863 SINGLE_VALUE_TYPE(switches::kEnableScrollPrediction)}, 864 SINGLE_VALUE_TYPE(switches::kEnableScrollPrediction)},
864 {"top-chrome-md", IDS_FLAGS_TOP_CHROME_MD, 865 {"top-chrome-md", IDS_FLAGS_TOP_CHROME_MD,
865 IDS_FLAGS_TOP_CHROME_MD_DESCRIPTION, kOsDesktop, 866 IDS_FLAGS_TOP_CHROME_MD_DESCRIPTION, kOsDesktop,
866 MULTI_VALUE_TYPE(kTopChromeMaterialDesignChoices)}, 867 MULTI_VALUE_TYPE(kTopChromeMaterialDesignChoices)},
867 {"secondary-ui-md", IDS_FLAGS_SECONDARY_UI_MD, 868 {"secondary-ui-md", IDS_FLAGS_SECONDARY_UI_MD,
868 IDS_FLAGS_SECONDARY_UI_MD_DESCRIPTION, kOsDesktop, 869 IDS_FLAGS_SECONDARY_UI_MD_DESCRIPTION, kOsDesktop,
869 SINGLE_VALUE_TYPE(switches::kExtendMdToSecondaryUi)}, 870 SINGLE_VALUE_TYPE(switches::kExtendMdToSecondaryUi)},
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2266 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2266 2267
2267 const FeatureEntry* GetFeatureEntries(size_t* count) { 2268 const FeatureEntry* GetFeatureEntries(size_t* count) {
2268 *count = arraysize(kFeatureEntries); 2269 *count = arraysize(kFeatureEntries);
2269 return kFeatureEntries; 2270 return kFeatureEntries;
2270 } 2271 }
2271 2272
2272 } // namespace testing 2273 } // namespace testing
2273 2274
2274 } // namespace about_flags 2275 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698