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

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

Issue 2513913002: Instant cleanup: Remove unused Android-only cmdline switches (Closed)
Patch Set: 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
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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 autofill::switches::kEnableSingleClickAutofill, 1344 autofill::switches::kEnableSingleClickAutofill,
1346 autofill::switches::kDisableSingleClickAutofill)}, 1345 autofill::switches::kDisableSingleClickAutofill)},
1347 {"enable-site-engagement-service", IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_NAME, 1346 {"enable-site-engagement-service", IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_NAME,
1348 IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_DESCRIPTION, kOsAll, 1347 IDS_FLAGS_SITE_ENGAGEMENT_SERVICE_DESCRIPTION, kOsAll,
1349 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSiteEngagementService, 1348 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSiteEngagementService,
1350 switches::kDisableSiteEngagementService)}, 1349 switches::kDisableSiteEngagementService)},
1351 {"disable-cast-streaming-hw-encoding", 1350 {"disable-cast-streaming-hw-encoding",
1352 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_NAME, 1351 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_NAME,
1353 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_DESCRIPTION, kOsAll, 1352 IDS_FLAGS_CAST_STREAMING_HW_ENCODING_DESCRIPTION, kOsAll,
1354 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableCastStreamingHWEncoding)}, 1353 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableCastStreamingHWEncoding)},
1355 #if defined(OS_ANDROID)
1356 {"prefetch-search-results", IDS_FLAGS_PREFETCH_SEARCH_RESULTS_NAME,
1357 IDS_FLAGS_PREFETCH_SEARCH_RESULTS_DESCRIPTION, kOsAndroid,
1358 SINGLE_VALUE_TYPE(switches::kPrefetchSearchResults)},
1359 #endif // OS_ANDROID
1360 {"disable-threaded-scrolling", IDS_FLAGS_THREADED_SCROLLING_NAME, 1354 {"disable-threaded-scrolling", IDS_FLAGS_THREADED_SCROLLING_NAME,
1361 IDS_FLAGS_THREADED_SCROLLING_DESCRIPTION, kOsAll, 1355 IDS_FLAGS_THREADED_SCROLLING_DESCRIPTION, kOsAll,
1362 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableThreadedScrolling)}, 1356 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableThreadedScrolling)},
1363 {"enable-settings-window", IDS_FLAGS_SETTINGS_WINDOW_NAME, 1357 {"enable-settings-window", IDS_FLAGS_SETTINGS_WINDOW_NAME,
1364 IDS_FLAGS_SETTINGS_WINDOW_DESCRIPTION, kOsDesktop, 1358 IDS_FLAGS_SETTINGS_WINDOW_DESCRIPTION, kOsDesktop,
1365 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSettingsWindow, 1359 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSettingsWindow,
1366 switches::kDisableSettingsWindow)}, 1360 switches::kDisableSettingsWindow)},
1367 {"inert-visual-viewport", IDS_FLAGS_INERT_VISUAL_VIEWPORT_NAME, 1361 {"inert-visual-viewport", IDS_FLAGS_INERT_VISUAL_VIEWPORT_NAME,
1368 IDS_FLAGS_INERT_VISUAL_VIEWPORT_DESCRIPTION, kOsAll, 1362 IDS_FLAGS_INERT_VISUAL_VIEWPORT_DESCRIPTION, kOsAll,
1369 SINGLE_VALUE_TYPE(switches::kInertVisualViewport)}, 1363 SINGLE_VALUE_TYPE(switches::kInertVisualViewport)},
1370 {"enable-apps-file-associations", IDS_FLAGS_APPS_FILE_ASSOCIATIONS_NAME, 1364 {"enable-apps-file-associations", IDS_FLAGS_APPS_FILE_ASSOCIATIONS_NAME,
1371 IDS_FLAGS_APPS_FILE_ASSOCIATIONS_DESCRIPTION, kOsMac, 1365 IDS_FLAGS_APPS_FILE_ASSOCIATIONS_DESCRIPTION, kOsMac,
1372 SINGLE_VALUE_TYPE(switches::kEnableAppsFileAssociations)}, 1366 SINGLE_VALUE_TYPE(switches::kEnableAppsFileAssociations)},
1373 #if defined(OS_ANDROID)
1374 {"enable-embeddedsearch-api", IDS_FLAGS_EMBEDDEDSEARCH_API_NAME,
1375 IDS_FLAGS_EMBEDDEDSEARCH_API_DESCRIPTION, kOsAndroid,
1376 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSearchAPI)},
1377 #endif // OS_ANDROID
1378 {"distance-field-text", IDS_FLAGS_DISTANCE_FIELD_TEXT_NAME, 1367 {"distance-field-text", IDS_FLAGS_DISTANCE_FIELD_TEXT_NAME,
1379 IDS_FLAGS_DISTANCE_FIELD_TEXT_DESCRIPTION, kOsAll, 1368 IDS_FLAGS_DISTANCE_FIELD_TEXT_DESCRIPTION, kOsAll,
1380 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDistanceFieldText, 1369 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDistanceFieldText,
1381 switches::kDisableDistanceFieldText)}, 1370 switches::kDisableDistanceFieldText)},
1382 {"extension-content-verification", 1371 {"extension-content-verification",
1383 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_NAME, 1372 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_NAME,
1384 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_DESCRIPTION, kOsDesktop, 1373 IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_DESCRIPTION, kOsDesktop,
1385 MULTI_VALUE_TYPE(kExtensionContentVerificationChoices)}, 1374 MULTI_VALUE_TYPE(kExtensionContentVerificationChoices)},
1386 #if BUILDFLAG(ENABLE_EXTENSIONS) 1375 #if BUILDFLAG(ENABLE_EXTENSIONS)
1387 {"extension-active-script-permission", 1376 {"extension-active-script-permission",
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2319 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2331 2320
2332 const FeatureEntry* GetFeatureEntries(size_t* count) { 2321 const FeatureEntry* GetFeatureEntries(size_t* count) {
2333 *count = arraysize(kFeatureEntries); 2322 *count = arraysize(kFeatureEntries);
2334 return kFeatureEntries; 2323 return kFeatureEntries;
2335 } 2324 }
2336 2325
2337 } // namespace testing 2326 } // namespace testing
2338 2327
2339 } // namespace about_flags 2328 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698