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

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

Issue 2529383004: Convert PermissionsBlacklist flag to base::Feature. (Closed)
Patch Set: Add Permission Blacklist feature to histograms.xml Created 4 years 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 | « no previous file | chrome/common/chrome_features.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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 {"num-raster-threads", IDS_FLAGS_NUM_RASTER_THREADS_NAME, 1331 {"num-raster-threads", IDS_FLAGS_NUM_RASTER_THREADS_NAME,
1332 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, kOsAll, 1332 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, kOsAll,
1333 MULTI_VALUE_TYPE(kNumRasterThreadsChoices)}, 1333 MULTI_VALUE_TYPE(kNumRasterThreadsChoices)},
1334 {"enable-permission-action-reporting", 1334 {"enable-permission-action-reporting",
1335 IDS_FLAGS_PERMISSION_ACTION_REPORTING_NAME, 1335 IDS_FLAGS_PERMISSION_ACTION_REPORTING_NAME,
1336 IDS_FLAGS_PERMISSION_ACTION_REPORTING_DESCRIPTION, kOsAll, 1336 IDS_FLAGS_PERMISSION_ACTION_REPORTING_DESCRIPTION, kOsAll,
1337 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePermissionActionReporting, 1337 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePermissionActionReporting,
1338 switches::kDisablePermissionActionReporting)}, 1338 switches::kDisablePermissionActionReporting)},
1339 {"enable-permissions-blacklist", IDS_FLAGS_PERMISSIONS_BLACKLIST_NAME, 1339 {"enable-permissions-blacklist", IDS_FLAGS_PERMISSIONS_BLACKLIST_NAME,
1340 IDS_FLAGS_PERMISSIONS_BLACKLIST_DESCRIPTION, kOsAll, 1340 IDS_FLAGS_PERMISSIONS_BLACKLIST_DESCRIPTION, kOsAll,
1341 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePermissionsBlacklist, 1341 FEATURE_VALUE_TYPE(features::kPermissionsBlacklist)},
1342 switches::kDisablePermissionsBlacklist)},
1343 {"enable-single-click-autofill", IDS_FLAGS_SINGLE_CLICK_AUTOFILL_NAME, 1342 {"enable-single-click-autofill", IDS_FLAGS_SINGLE_CLICK_AUTOFILL_NAME,
1344 IDS_FLAGS_SINGLE_CLICK_AUTOFILL_DESCRIPTION, kOsAll, 1343 IDS_FLAGS_SINGLE_CLICK_AUTOFILL_DESCRIPTION, kOsAll,
1345 ENABLE_DISABLE_VALUE_TYPE( 1344 ENABLE_DISABLE_VALUE_TYPE(
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",
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2327 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2329 2328
2330 const FeatureEntry* GetFeatureEntries(size_t* count) { 2329 const FeatureEntry* GetFeatureEntries(size_t* count) {
2331 *count = arraysize(kFeatureEntries); 2330 *count = arraysize(kFeatureEntries);
2332 return kFeatureEntries; 2331 return kFeatureEntries;
2333 } 2332 }
2334 2333
2335 } // namespace testing 2334 } // namespace testing
2336 2335
2337 } // namespace about_flags 2336 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698