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

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

Issue 2513913002: Instant cleanup: Remove unused Android-only cmdline switches (Closed)
Patch Set: review Created 4 years, 1 month 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | components/search/BUILD.gn » ('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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "components/flags_ui/flags_storage.h" 44 #include "components/flags_ui/flags_storage.h"
45 #include "components/flags_ui/flags_ui_switches.h" 45 #include "components/flags_ui/flags_ui_switches.h"
46 #include "components/nacl/common/nacl_switches.h" 46 #include "components/nacl/common/nacl_switches.h"
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"
55 #include "components/security_state/core/switches.h" 54 #include "components/security_state/core/switches.h"
56 #include "components/signin/core/common/signin_switches.h" 55 #include "components/signin/core/common/signin_switches.h"
57 #include "components/spellcheck/common/spellcheck_features.h" 56 #include "components/spellcheck/common/spellcheck_features.h"
58 #include "components/spellcheck/common/spellcheck_switches.h" 57 #include "components/spellcheck/common/spellcheck_switches.h"
59 #include "components/spellcheck/spellcheck_build_features.h" 58 #include "components/spellcheck/spellcheck_build_features.h"
60 #include "components/ssl_config/ssl_config_switches.h" 59 #include "components/ssl_config/ssl_config_switches.h"
61 #include "components/strings/grit/components_strings.h" 60 #include "components/strings/grit/components_strings.h"
62 #include "components/sync/driver/sync_driver_switches.h" 61 #include "components/sync/driver/sync_driver_switches.h"
63 #include "components/tracing/common/tracing_switches.h" 62 #include "components/tracing/common/tracing_switches.h"
64 #include "components/translate/core/browser/translate_manager.h" 63 #include "components/translate/core/browser/translate_manager.h"
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 autofill::switches::kEnableSingleClickAutofill, 1345 autofill::switches::kEnableSingleClickAutofill,
1347 autofill::switches::kDisableSingleClickAutofill)}, 1346 autofill::switches::kDisableSingleClickAutofill)},
1348 {"enable-site-engagement-service", IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_NAME, 1347 {"enable-site-engagement-service", IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_NAME,
1349 IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_DESCRIPTION, kOsAll, 1348 IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_DESCRIPTION, kOsAll,
1350 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSiteEngagementService, 1349 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSiteEngagementService,
1351 switches::kDisableSiteEngagementService)}, 1350 switches::kDisableSiteEngagementService)},
1352 {"disable-cast-streaming-hw-encoding", 1351 {"disable-cast-streaming-hw-encoding",
1353 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_NAME, 1352 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_NAME,
1354 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_DESCRIPTION, kOsAll, 1353 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_DESCRIPTION, kOsAll,
1355 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableCastStreamingHWEncoding)}, 1354 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableCastStreamingHWEncoding)},
1356 #if defined(OS_ANDROID)
1357 {"prefetch-search-results", IDS_FLAGS_PREFETCH_SEARCH_RESULTS_NAME,
1358 IDS_FLAGS_PREFETCH_SEARCH_RESULTS_DESCRIPTION, kOsAndroid,
1359 SINGLE_VALUE_TYPE(switches::kPrefetchSearchResults)},
1360 #endif // OS_ANDROID
1361 {"disable-threaded-scrolling", IDS_FLAGS_THREADED_SCROLLING_NAME, 1355 {"disable-threaded-scrolling", IDS_FLAGS_THREADED_SCROLLING_NAME,
1362 IDS_FLAGS_THREADED_SCROLLING_DESCRIPTION, kOsAll, 1356 IDS_FLAGS_THREADED_SCROLLING_DESCRIPTION, kOsAll,
1363 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableThreadedScrolling)}, 1357 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableThreadedScrolling)},
1364 {"enable-settings-window", IDS_FLAGS_SETTINGS_WINDOW_NAME, 1358 {"enable-settings-window", IDS_FLAGS_SETTINGS_WINDOW_NAME,
1365 IDS_FLAGS_SETTINGS_WINDOW_DESCRIPTION, kOsDesktop, 1359 IDS_FLAGS_SETTINGS_WINDOW_DESCRIPTION, kOsDesktop,
1366 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSettingsWindow, 1360 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSettingsWindow,
1367 switches::kDisableSettingsWindow)}, 1361 switches::kDisableSettingsWindow)},
1368 {"inert-visual-viewport", IDS_FLAGS_INERT_VISUAL_VIEWPORT_NAME, 1362 {"inert-visual-viewport", IDS_FLAGS_INERT_VISUAL_VIEWPORT_NAME,
1369 IDS_FLAGS_INERT_VISUAL_VIEWPORT_DESCRIPTION, kOsAll, 1363 IDS_FLAGS_INERT_VISUAL_VIEWPORT_DESCRIPTION, kOsAll,
1370 SINGLE_VALUE_TYPE(switches::kInertVisualViewport)}, 1364 SINGLE_VALUE_TYPE(switches::kInertVisualViewport)},
1371 {"enable-apps-file-associations", IDS_FLAGS_APPS_FILE_ASSOCIATIONS_NAME, 1365 {"enable-apps-file-associations", IDS_FLAGS_APPS_FILE_ASSOCIATIONS_NAME,
1372 IDS_FLAGS_APPS_FILE_ASSOCIATIONS_DESCRIPTION, kOsMac, 1366 IDS_FLAGS_APPS_FILE_ASSOCIATIONS_DESCRIPTION, kOsMac,
1373 SINGLE_VALUE_TYPE(switches::kEnableAppsFileAssociations)}, 1367 SINGLE_VALUE_TYPE(switches::kEnableAppsFileAssociations)},
1374 #if defined(OS_ANDROID)
1375 {"enable-embeddedsearch-api", IDS_FLAGS_EMBEDDEDSEARCH_API_NAME,
1376 IDS_FLAGS_EMBEDDEDSEARCH_API_DESCRIPTION, kOsAndroid,
1377 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSearchAPI)},
1378 #endif // OS_ANDROID
1379 {"distance-field-text", IDS_FLAGS_DISTANCE_FIELD_TEXT_NAME, 1368 {"distance-field-text", IDS_FLAGS_DISTANCE_FIELD_TEXT_NAME,
1380 IDS_FLAGS_DISTANCE_FIELD_TEXT_DESCRIPTION, kOsAll, 1369 IDS_FLAGS_DISTANCE_FIELD_TEXT_DESCRIPTION, kOsAll,
1381 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDistanceFieldText, 1370 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDistanceFieldText,
1382 switches::kDisableDistanceFieldText)}, 1371 switches::kDisableDistanceFieldText)},
1383 {"extension-content-verification", 1372 {"extension-content-verification",
1384 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_NAME, 1373 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_NAME,
1385 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_DESCRIPTION, kOsDesktop, 1374 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_DESCRIPTION, kOsDesktop,
1386 MULTI_VALUE_TYPE(kExtensionContentVerificationChoices)}, 1375 MULTI_VALUE_TYPE(kExtensionContentVerificationChoices)},
1387 #if BUILDFLAG(ENABLE_EXTENSIONS) 1376 #if BUILDFLAG(ENABLE_EXTENSIONS)
1388 {"extension-active-script-permission", 1377 {"extension-active-script-permission",
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2317 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2329 2318
2330 const FeatureEntry* GetFeatureEntries(size_t* count) { 2319 const FeatureEntry* GetFeatureEntries(size_t* count) {
2331 *count = arraysize(kFeatureEntries); 2320 *count = arraysize(kFeatureEntries);
2332 return kFeatureEntries; 2321 return kFeatureEntries;
2333 } 2322 }
2334 2323
2335 } // namespace testing 2324 } // namespace testing
2336 2325
2337 } // namespace about_flags 2326 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | components/search/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698