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

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

Issue 2006523002: Add a flag for reporting permission actions to Safe Browsing servers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder flag entry 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
« 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 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 SINGLE_VALUE_TYPE(extensions::switches::kEnableAppsShowOnFirstPaint)}, 1241 SINGLE_VALUE_TYPE(extensions::switches::kEnableAppsShowOnFirstPaint)},
1242 #endif 1242 #endif
1243 #if defined(OS_ANDROID) 1243 #if defined(OS_ANDROID)
1244 {"reader-mode-heuristics", IDS_FLAGS_READER_MODE_HEURISTICS_NAME, 1244 {"reader-mode-heuristics", IDS_FLAGS_READER_MODE_HEURISTICS_NAME,
1245 IDS_FLAGS_READER_MODE_HEURISTICS_DESCRIPTION, kOsAndroid, 1245 IDS_FLAGS_READER_MODE_HEURISTICS_DESCRIPTION, kOsAndroid,
1246 MULTI_VALUE_TYPE(kReaderModeHeuristicsChoices)}, 1246 MULTI_VALUE_TYPE(kReaderModeHeuristicsChoices)},
1247 #endif 1247 #endif
1248 {"num-raster-threads", IDS_FLAGS_NUM_RASTER_THREADS_NAME, 1248 {"num-raster-threads", IDS_FLAGS_NUM_RASTER_THREADS_NAME,
1249 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, kOsAll, 1249 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, kOsAll,
1250 MULTI_VALUE_TYPE(kNumRasterThreadsChoices)}, 1250 MULTI_VALUE_TYPE(kNumRasterThreadsChoices)},
1251 {"enable-permission-action-reporting",
1252 IDS_FLAGS_PERMISSION_ACTION_REPORTING_NAME,
1253 IDS_FLAGS_PERMISSION_ACTION_REPORTING_DESCRIPTION, kOsAll,
1254 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePermissionActionReporting,
1255 switches::kDisablePermissionActionReporting)},
1251 {"enable-permissions-blacklist", IDS_FLAGS_PERMISSIONS_BLACKLIST_NAME, 1256 {"enable-permissions-blacklist", IDS_FLAGS_PERMISSIONS_BLACKLIST_NAME,
1252 IDS_FLAGS_PERMISSIONS_BLACKLIST_DESCRIPTION, kOsAll, 1257 IDS_FLAGS_PERMISSIONS_BLACKLIST_DESCRIPTION, kOsAll,
1253 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePermissionsBlacklist, 1258 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePermissionsBlacklist,
1254 switches::kDisablePermissionsBlacklist)}, 1259 switches::kDisablePermissionsBlacklist)},
1255 {"enable-single-click-autofill", IDS_FLAGS_SINGLE_CLICK_AUTOFILL_NAME, 1260 {"enable-single-click-autofill", IDS_FLAGS_SINGLE_CLICK_AUTOFILL_NAME,
1256 IDS_FLAGS_SINGLE_CLICK_AUTOFILL_DESCRIPTION, 1261 IDS_FLAGS_SINGLE_CLICK_AUTOFILL_DESCRIPTION,
1257 kOsCrOS | kOsMac | kOsWin | kOsLinux | kOsAndroid, 1262 kOsCrOS | kOsMac | kOsWin | kOsLinux | kOsAndroid,
1258 ENABLE_DISABLE_VALUE_TYPE( 1263 ENABLE_DISABLE_VALUE_TYPE(
1259 autofill::switches::kEnableSingleClickAutofill, 1264 autofill::switches::kEnableSingleClickAutofill,
1260 autofill::switches::kDisableSingleClickAutofill)}, 1265 autofill::switches::kDisableSingleClickAutofill)},
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2073 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2078 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2074 2079
2075 const FeatureEntry* GetFeatureEntries(size_t* count) { 2080 const FeatureEntry* GetFeatureEntries(size_t* count) {
2076 *count = arraysize(kFeatureEntries); 2081 *count = arraysize(kFeatureEntries);
2077 return kFeatureEntries; 2082 return kFeatureEntries;
2078 } 2083 }
2079 2084
2080 } // namespace testing 2085 } // namespace testing
2081 2086
2082 } // namespace about_flags 2087 } // 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