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

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: Addresses nit. 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('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 23 matching lines...) Expand all
34 #include "components/cloud_devices/common/cloud_devices_switches.h" 34 #include "components/cloud_devices/common/cloud_devices_switches.h"
35 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 35 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
36 #include "components/dom_distiller/core/dom_distiller_switches.h" 36 #include "components/dom_distiller/core/dom_distiller_switches.h"
37 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h" 37 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h"
38 #include "components/flags_ui/feature_entry_macros.h" 38 #include "components/flags_ui/feature_entry_macros.h"
39 #include "components/flags_ui/flags_storage.h" 39 #include "components/flags_ui/flags_storage.h"
40 #include "components/flags_ui/flags_ui_switches.h" 40 #include "components/flags_ui/flags_ui_switches.h"
41 #include "components/nacl/common/nacl_switches.h" 41 #include "components/nacl/common/nacl_switches.h"
42 #include "components/offline_pages/offline_page_switches.h" 42 #include "components/offline_pages/offline_page_switches.h"
43 #include "components/omnibox/browser/omnibox_switches.h" 43 #include "components/omnibox/browser/omnibox_switches.h"
44 #include "components/password_manager/core/common/password_manager_features.h"
44 #include "components/password_manager/core/common/password_manager_switches.h" 45 #include "components/password_manager/core/common/password_manager_switches.h"
45 #include "components/proximity_auth/switches.h" 46 #include "components/proximity_auth/switches.h"
46 #include "components/search/search_switches.h" 47 #include "components/search/search_switches.h"
47 #include "components/signin/core/common/signin_switches.h" 48 #include "components/signin/core/common/signin_switches.h"
48 #include "components/sync_driver/sync_driver_switches.h" 49 #include "components/sync_driver/sync_driver_switches.h"
49 #include "components/tracing/tracing_switches.h" 50 #include "components/tracing/tracing_switches.h"
50 #include "components/version_info/version_info.h" 51 #include "components/version_info/version_info.h"
51 #include "content/public/browser/user_metrics.h" 52 #include "content/public/browser/user_metrics.h"
52 #include "content/public/common/content_features.h" 53 #include "content/public/common/content_features.h"
53 #include "content/public/common/content_switches.h" 54 #include "content/public/common/content_switches.h"
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 {"enable-password-generation", 1024 {"enable-password-generation",
1024 IDS_FLAGS_PASSWORD_GENERATION_NAME, 1025 IDS_FLAGS_PASSWORD_GENERATION_NAME,
1025 IDS_FLAGS_PASSWORD_GENERATION_DESCRIPTION, 1026 IDS_FLAGS_PASSWORD_GENERATION_DESCRIPTION,
1026 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid, 1027 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid,
1027 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnablePasswordGeneration, 1028 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnablePasswordGeneration,
1028 autofill::switches::kDisablePasswordGeneration)}, 1029 autofill::switches::kDisablePasswordGeneration)},
1029 {"enable-automatic-password-saving", 1030 {"enable-automatic-password-saving",
1030 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_NAME, 1031 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_NAME,
1031 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_DESCRIPTION, 1032 IDS_FLAGS_AUTOMATIC_PASSWORD_SAVING_DESCRIPTION,
1032 kOsDesktop, 1033 kOsDesktop,
1033 SINGLE_VALUE_TYPE( 1034 FEATURE_VALUE_TYPE(
1034 password_manager::switches::kEnableAutomaticPasswordSaving)}, 1035 password_manager::features::kEnableAutomaticPasswordSaving)},
1035 {"password-manager-reauthentication", 1036 {"password-manager-reauthentication",
1036 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_NAME, 1037 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_NAME,
1037 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_DESCRIPTION, 1038 IDS_FLAGS_PASSWORD_MANAGER_REAUTHENTICATION_DESCRIPTION,
1038 kOsMac | kOsWin, 1039 kOsMac | kOsWin,
1039 SINGLE_DISABLE_VALUE_TYPE( 1040 SINGLE_DISABLE_VALUE_TYPE(
1040 switches::kDisablePasswordManagerReauthentication)}, 1041 switches::kDisablePasswordManagerReauthentication)},
1041 {"enable-password-change-support", 1042 {"enable-password-change-support",
1042 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_NAME, 1043 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_NAME,
1043 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_DESCRIPTION, 1044 IDS_FLAGS_PASSWORD_CHANGE_SUPPORT_DESCRIPTION,
1044 kOsMac, 1045 kOsMac,
1045 SINGLE_VALUE_TYPE( 1046 FEATURE_VALUE_TYPE(
1046 password_manager::switches::kEnablePasswordChangeSupport)}, 1047 password_manager::features::kEnablePasswordChangeSupport)},
1047 {"enable-password-force-saving", 1048 {"enable-password-force-saving",
1048 IDS_FLAGS_PASSWORD_FORCE_SAVING_NAME, 1049 IDS_FLAGS_PASSWORD_FORCE_SAVING_NAME,
1049 IDS_FLAGS_PASSWORD_FORCE_SAVING_DESCRIPTION, 1050 IDS_FLAGS_PASSWORD_FORCE_SAVING_DESCRIPTION,
1050 kOsAll, 1051 kOsAll,
1051 SINGLE_VALUE_TYPE(password_manager::switches::kEnablePasswordForceSaving)}, 1052 FEATURE_VALUE_TYPE(
1053 password_manager::features::kEnablePasswordForceSaving)},
1052 {"enable-affiliation-based-matching", 1054 {"enable-affiliation-based-matching",
1053 IDS_FLAGS_AFFILIATION_BASED_MATCHING_NAME, 1055 IDS_FLAGS_AFFILIATION_BASED_MATCHING_NAME,
1054 IDS_FLAGS_AFFILIATION_BASED_MATCHING_DESCRIPTION, 1056 IDS_FLAGS_AFFILIATION_BASED_MATCHING_DESCRIPTION,
1055 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid, 1057 kOsWin | kOsLinux | kOsCrOS | kOsMac | kOsAndroid,
1056 ENABLE_DISABLE_VALUE_TYPE( 1058 ENABLE_DISABLE_VALUE_TYPE(
1057 password_manager::switches::kEnableAffiliationBasedMatching, 1059 password_manager::switches::kEnableAffiliationBasedMatching,
1058 password_manager::switches::kDisableAffiliationBasedMatching)}, 1060 password_manager::switches::kDisableAffiliationBasedMatching)},
1059 {"wallet-service-use-sandbox", 1061 {"wallet-service-use-sandbox",
1060 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_NAME, 1062 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_NAME,
1061 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_DESCRIPTION, 1063 IDS_FLAGS_WALLET_SERVICE_USE_SANDBOX_DESCRIPTION,
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2309 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2311 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2310 2312
2311 const FeatureEntry* GetFeatureEntries(size_t* count) { 2313 const FeatureEntry* GetFeatureEntries(size_t* count) {
2312 *count = arraysize(kFeatureEntries); 2314 *count = arraysize(kFeatureEntries);
2313 return kFeatureEntries; 2315 return kFeatureEntries;
2314 } 2316 }
2315 2317
2316 } // namespace testing 2318 } // namespace testing
2317 2319
2318 } // namespace about_flags 2320 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/chrome_password_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698