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

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

Issue 1928913002: Create //components/ntp_tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 25 matching lines...) Expand all
36 #include "components/autofill/core/common/autofill_switches.h" 36 #include "components/autofill/core/common/autofill_switches.h"
37 #include "components/browser_sync/common/browser_sync_switches.h" 37 #include "components/browser_sync/common/browser_sync_switches.h"
38 #include "components/cloud_devices/common/cloud_devices_switches.h" 38 #include "components/cloud_devices/common/cloud_devices_switches.h"
39 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 39 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
40 #include "components/dom_distiller/core/dom_distiller_switches.h" 40 #include "components/dom_distiller/core/dom_distiller_switches.h"
41 #include "components/error_page/common/error_page_switches.h" 41 #include "components/error_page/common/error_page_switches.h"
42 #include "components/flags_ui/feature_entry_macros.h" 42 #include "components/flags_ui/feature_entry_macros.h"
43 #include "components/flags_ui/flags_storage.h" 43 #include "components/flags_ui/flags_storage.h"
44 #include "components/flags_ui/flags_ui_switches.h" 44 #include "components/flags_ui/flags_ui_switches.h"
45 #include "components/nacl/common/nacl_switches.h" 45 #include "components/nacl/common/nacl_switches.h"
46 #include "components/ntp_tiles/switches.h"
46 #include "components/offline_pages/offline_page_feature.h" 47 #include "components/offline_pages/offline_page_feature.h"
47 #include "components/omnibox/browser/omnibox_switches.h" 48 #include "components/omnibox/browser/omnibox_switches.h"
48 #include "components/password_manager/core/common/password_manager_features.h" 49 #include "components/password_manager/core/common/password_manager_features.h"
49 #include "components/proximity_auth/switches.h" 50 #include "components/proximity_auth/switches.h"
50 #include "components/quirks/switches.h" 51 #include "components/quirks/switches.h"
51 #include "components/search/search_switches.h" 52 #include "components/search/search_switches.h"
52 #include "components/security_state/switches.h" 53 #include "components/security_state/switches.h"
53 #include "components/signin/core/common/signin_switches.h" 54 #include "components/signin/core/common/signin_switches.h"
54 #include "components/sync_driver/sync_driver_switches.h" 55 #include "components/sync_driver/sync_driver_switches.h"
55 #include "components/tracing/tracing_switches.h" 56 #include "components/tracing/tracing_switches.h"
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 IDS_FLAGS_DISALLOW_DOC_WRITTEN_SCRIPTS_UI_DESCRIPTION, kOsAll, 1587 IDS_FLAGS_DISALLOW_DOC_WRITTEN_SCRIPTS_UI_DESCRIPTION, kOsAll,
1587 // NOTE: if we want to add additional experiment entries for other 1588 // NOTE: if we want to add additional experiment entries for other
1588 // features controlled by kBlinkSettings, we'll need to add logic to 1589 // features controlled by kBlinkSettings, we'll need to add logic to
1589 // merge the flag values. 1590 // merge the flag values.
1590 SINGLE_VALUE_TYPE_AND_VALUE( 1591 SINGLE_VALUE_TYPE_AND_VALUE(
1591 switches::kBlinkSettings, 1592 switches::kBlinkSettings,
1592 "disallowFetchForDocWrittenScriptsInMainFrame=true")}, 1593 "disallowFetchForDocWrittenScriptsInMainFrame=true")},
1593 #if defined(OS_ANDROID) 1594 #if defined(OS_ANDROID)
1594 {"enable-ntp-popular-sites", IDS_FLAGS_NTP_POPULAR_SITES_NAME, 1595 {"enable-ntp-popular-sites", IDS_FLAGS_NTP_POPULAR_SITES_NAME,
1595 IDS_FLAGS_NTP_POPULAR_SITES_DESCRIPTION, kOsAndroid, 1596 IDS_FLAGS_NTP_POPULAR_SITES_DESCRIPTION, kOsAndroid,
1596 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableNTPPopularSites, 1597 ENABLE_DISABLE_VALUE_TYPE(ntp_tiles::switches::kEnableNTPPopularSites,
1597 switches::kDisableNTPPopularSites)}, 1598 ntp_tiles::switches::kDisableNTPPopularSites)},
1598 {"ntp-switch-to-existing-tab", IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_NAME, 1599 {"ntp-switch-to-existing-tab", IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_NAME,
1599 IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_DESCRIPTION, kOsAndroid, 1600 IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_DESCRIPTION, kOsAndroid,
1600 MULTI_VALUE_TYPE(kNtpSwitchToExistingTabChoices)}, 1601 MULTI_VALUE_TYPE(kNtpSwitchToExistingTabChoices)},
1601 {"use-android-midi-api", IDS_FLAGS_USE_ANDROID_MIDI_API_NAME, 1602 {"use-android-midi-api", IDS_FLAGS_USE_ANDROID_MIDI_API_NAME,
1602 IDS_FLAGS_USE_ANDROID_MIDI_API_DESCRIPTION, kOsAndroid, 1603 IDS_FLAGS_USE_ANDROID_MIDI_API_DESCRIPTION, kOsAndroid,
1603 SINGLE_VALUE_TYPE(switches::kUseAndroidMidiApi)}, 1604 SINGLE_VALUE_TYPE(switches::kUseAndroidMidiApi)},
1604 #endif // defined(OS_ANDROID) 1605 #endif // defined(OS_ANDROID)
1605 #if defined(OS_WIN) 1606 #if defined(OS_WIN)
1606 {"trace-export-events-to-etw", IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME, 1607 {"trace-export-events-to-etw", IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME,
1607 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, kOsWin, 1608 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, kOsWin,
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2024 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2024 2025
2025 const FeatureEntry* GetFeatureEntries(size_t* count) { 2026 const FeatureEntry* GetFeatureEntries(size_t* count) {
2026 *count = arraysize(kFeatureEntries); 2027 *count = arraysize(kFeatureEntries);
2027 return kFeatureEntries; 2028 return kFeatureEntries;
2028 } 2029 }
2029 2030
2030 } // namespace testing 2031 } // namespace testing
2031 2032
2032 } // namespace about_flags 2033 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698