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

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

Issue 1488763003: [Password Manager] Switch password manager code to use "base/feature_list.h". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 22 matching lines...) Expand all
33 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 33 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
34 #include "components/dom_distiller/core/dom_distiller_switches.h" 34 #include "components/dom_distiller/core/dom_distiller_switches.h"
35 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h" 35 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h"
36 #include "components/flags_ui/feature_entry_macros.h" 36 #include "components/flags_ui/feature_entry_macros.h"
37 #include "components/flags_ui/flags_storage.h" 37 #include "components/flags_ui/flags_storage.h"
38 #include "components/flags_ui/flags_ui_switches.h" 38 #include "components/flags_ui/flags_ui_switches.h"
39 #include "components/metrics/metrics_hashes.h" 39 #include "components/metrics/metrics_hashes.h"
40 #include "components/nacl/common/nacl_switches.h" 40 #include "components/nacl/common/nacl_switches.h"
41 #include "components/offline_pages/offline_page_switches.h" 41 #include "components/offline_pages/offline_page_switches.h"
42 #include "components/omnibox/browser/omnibox_switches.h" 42 #include "components/omnibox/browser/omnibox_switches.h"
43 #include "components/password_manager/core/common/password_manager_features.h"
43 #include "components/password_manager/core/common/password_manager_switches.h" 44 #include "components/password_manager/core/common/password_manager_switches.h"
44 #include "components/proximity_auth/switches.h" 45 #include "components/proximity_auth/switches.h"
45 #include "components/search/search_switches.h" 46 #include "components/search/search_switches.h"
46 #include "components/signin/core/common/signin_switches.h" 47 #include "components/signin/core/common/signin_switches.h"
47 #include "components/sync_driver/sync_driver_switches.h" 48 #include "components/sync_driver/sync_driver_switches.h"
48 #include "components/tracing/tracing_switches.h" 49 #include "components/tracing/tracing_switches.h"
49 #include "components/version_info/version_info.h" 50 #include "components/version_info/version_info.h"
50 #include "content/public/browser/user_metrics.h" 51 #include "content/public/browser/user_metrics.h"
51 #include "content/public/common/content_features.h" 52 #include "content/public/common/content_features.h"
52 #include "content/public/common/content_switches.h" 53 #include "content/public/common/content_switches.h"
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 {"enable-password-generation", 1018 {"enable-password-generation",
1018 IDS_FLAGS_PASSWORD_GENERATION_NAME, 1019 IDS_FLAGS_PASSWORD_GENERATION_NAME,
1019 IDS_FLAGS_PASSWORD_GENERATION_DESCRIPTION, 1020 IDS_FLAGS_PASSWORD_GENERATION_DESCRIPTION,
1020 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid, 1021 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid,
1021 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnablePasswordGeneration, 1022 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnablePasswordGeneration,
1022 autofill::switches::kDisablePasswordGeneration)}, 1023 autofill::switches::kDisablePasswordGeneration)},
1023 {"enable-automatic-password-saving", 1024 {"enable-automatic-password-saving",
1024 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_NAME, 1025 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_NAME,
1025 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_DESCRIPTION, 1026 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_DESCRIPTION,
1026 kOsDesktop, 1027 kOsDesktop,
1027 SINGLE_VALUE_TYPE( 1028 FEATURE_VALUE_TYPE(
1028 password_manager::switches::kEnableAutomaticPasswordSaving)}, 1029 password_manager::features::kEnableAutomaticPasswordSaving)},
1029 {"password-manager-reauthentication", 1030 {"password-manager-reauthentication",
1030 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_NAME, 1031 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_NAME,
1031 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_DESCRIPTION, 1032 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_DESCRIPTION,
1032 kOsMac | kOsWin, 1033 kOsMac | kOsWin,
1033 SINGLE_DISABLE_VALUE_TYPE( 1034 SINGLE_DISABLE_VALUE_TYPE(
1034 switches::kDisablePasswordManagerReauthentication)}, 1035 switches::kDisablePasswordManagerReauthentication)},
1035 {"enable-password-change-support", 1036 {"enable-password-change-support",
1036 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_NAME, 1037 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_NAME,
1037 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_DESCRIPTION, 1038 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_DESCRIPTION,
1038 kOsMac, 1039 kOsMac,
1039 SINGLE_VALUE_TYPE( 1040 FEATURE_VALUE_TYPE(
1040 password_manager::switches::kEnablePasswordChangeSupport)}, 1041 password_manager::features::kEnablePasswordChangeSupport)},
1041 {"enable-password-force-saving", 1042 {"enable-password-force-saving",
1042 IDS_FLAGS_PASSWORD_FORCE_SAVING_NAME, 1043 IDS_FLAGS_PASSWORD_FORCE_SAVING_NAME,
1043 IDS_FLAGS_PASSWORD_FORCE_SAVING_DESCRIPTION, 1044 IDS_FLAGS_PASSWORD_FORCE_SAVING_DESCRIPTION,
1044 kOsAll, 1045 kOsAll,
1045 SINGLE_VALUE_TYPE(password_manager::switches::kEnablePasswordForceSaving)}, 1046 FEATURE_VALUE_TYPE(
1047 password_manager::features::kEnablePasswordForceSaving)},
1046 {"enable-affiliation-based-matching", 1048 {"enable-affiliation-based-matching",
1047 IDS_FLAGS_AFFILIATION_BASED_MATCHING_NAME, 1049 IDS_FLAGS_AFFILIATION_BASED_MATCHING_NAME,
1048 IDS_FLAGS_AFFILIATION_BASED_MATCHING_DESCRIPTION, 1050 IDS_FLAGS_AFFILIATION_BASED_MATCHING_DESCRIPTION,
1049 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid, 1051 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid,
1050 ENABLE_DISABLE_VALUE_TYPE( 1052 ENABLE_DISABLE_VALUE_TYPE(
1051 password_manager::switches::kEnableAffiliationBasedMatching, 1053 password_manager::switches::kEnableAffiliationBasedMatching,
1052 password_manager::switches::kDisableAffiliationBasedMatching)}, 1054 password_manager::switches::kDisableAffiliationBasedMatching)},
1053 {"wallet-service-use-sandbox", 1055 {"wallet-service-use-sandbox",
1054 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_NAME, 1056 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_NAME,
1055 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_DESCRIPTION, 1057 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_DESCRIPTION,
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2268 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2267 2269
2268 const FeatureEntry* GetFeatureEntries(size_t* count) { 2270 const FeatureEntry* GetFeatureEntries(size_t* count) {
2269 *count = arraysize(kFeatureEntries); 2271 *count = arraysize(kFeatureEntries);
2270 return kFeatureEntries; 2272 return kFeatureEntries;
2271 } 2273 }
2272 2274
2273 } // namespace testing 2275 } // namespace testing
2274 2276
2275 } // namespace about_flags 2277 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698