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

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

Issue 1915773002: Add switches to enable the unified permission manager on Android. Base URL: https://chromium.googlesource.com/chromium/src.git@permission-request
Patch Set: Created 4 years, 8 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('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 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 {"important-sites-in-cbd", 1812 {"important-sites-in-cbd",
1813 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME, 1813 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME,
1814 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid, 1814 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid,
1815 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)}, 1815 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)},
1816 #endif 1816 #endif
1817 {"enable-pointer-events", // FLAGS:RECORD_UMA 1817 {"enable-pointer-events", // FLAGS:RECORD_UMA
1818 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, 1818 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME,
1819 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, 1819 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION,
1820 kOsAll, 1820 kOsAll,
1821 FEATURE_VALUE_TYPE(features::kPointerEvents)}, 1821 FEATURE_VALUE_TYPE(features::kPointerEvents)},
1822 #if defined(OS_ANDROID)
1823 {"enable-unified-permission-manager",
1824 IDS_FLAGS_UNIFIED_PERMISSION_MANAGER_NAME,
1825 IDS_FLAGS_UNIFIED_PERMISSION_MANAGER_DESCRIPTION, kOsAndroid,
1826 SINGLE_VALUE_TYPE(switches::kEnableUnifiedPermissionManager)},
1827 #endif // defined(OS_ANDROID)
1828
1822 // NOTE: Adding new command-line switches requires adding corresponding 1829 // NOTE: Adding new command-line switches requires adding corresponding
1823 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1830 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1824 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1831 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1825 }; 1832 };
1826 1833
1827 class FlagsStateSingleton { 1834 class FlagsStateSingleton {
1828 public: 1835 public:
1829 FlagsStateSingleton() 1836 FlagsStateSingleton()
1830 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1837 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1831 ~FlagsStateSingleton() {} 1838 ~FlagsStateSingleton() {}
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2018 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2012 2019
2013 const FeatureEntry* GetFeatureEntries(size_t* count) { 2020 const FeatureEntry* GetFeatureEntries(size_t* count) {
2014 *count = arraysize(kFeatureEntries); 2021 *count = arraysize(kFeatureEntries);
2015 return kFeatureEntries; 2022 return kFeatureEntries;
2016 } 2023 }
2017 2024
2018 } // namespace testing 2025 } // namespace testing
2019 2026
2020 } // namespace about_flags 2027 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698