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

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

Issue 492043003: Fill on account select in the password manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 years, 1 month 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 | Annotate | Revision Log
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 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance) 2014 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance)
2015 }, 2015 },
2016 { 2016 {
2017 "disable-new-zip-unpacker", 2017 "disable-new-zip-unpacker",
2018 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, 2018 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME,
2019 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, 2019 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION,
2020 kOsCrOS, 2020 kOsCrOS,
2021 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) 2021 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)
2022 } 2022 }
2023 #endif // defined(OS_CHROMEOS) 2023 #endif // defined(OS_CHROMEOS)
2024 {
2025 "enable-fill-on-account-select",
2026 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_NAME,
2027 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_DESCRIPTION,
2028 kOsAll,
2029 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect,
2030 autofill::switches::kDisableFillOnAccountSelect)
2031 },
2024 // NOTE: Adding new command-line switches requires adding corresponding 2032 // NOTE: Adding new command-line switches requires adding corresponding
2025 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2033 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2026 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2034 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2027 }; 2035 };
2028 2036
2029 const Experiment* experiments = kExperiments; 2037 const Experiment* experiments = kExperiments;
2030 size_t num_experiments = arraysize(kExperiments); 2038 size_t num_experiments = arraysize(kExperiments);
2031 2039
2032 // Stores and encapsulates the little state that about:flags has. 2040 // Stores and encapsulates the little state that about:flags has.
2033 class FlagsState { 2041 class FlagsState {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 } 2607 }
2600 2608
2601 const Experiment* GetExperiments(size_t* count) { 2609 const Experiment* GetExperiments(size_t* count) {
2602 *count = num_experiments; 2610 *count = num_experiments;
2603 return experiments; 2611 return experiments;
2604 } 2612 }
2605 2613
2606 } // namespace testing 2614 } // namespace testing
2607 2615
2608 } // namespace about_flags 2616 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698