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

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: Re-added check that form contains a username field. 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 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) 2039 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)
2040 }, 2040 },
2041 #endif // defined(OS_CHROMEOS) 2041 #endif // defined(OS_CHROMEOS)
2042 { 2042 {
2043 "ssl-version-min", 2043 "ssl-version-min",
2044 IDS_FLAGS_SSL_VERSION_MIN_NAME, 2044 IDS_FLAGS_SSL_VERSION_MIN_NAME,
2045 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION, 2045 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION,
2046 kOsAll, 2046 kOsAll,
2047 MULTI_VALUE_TYPE(kSSLVersionMinChoices) 2047 MULTI_VALUE_TYPE(kSSLVersionMinChoices)
2048 }, 2048 },
2049 {
2050 "enable-fill-on-account-select",
2051 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_NAME,
2052 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_DESCRIPTION,
2053 kOsAll,
2054 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect,
2055 autofill::switches::kDisableFillOnAccountSelect)
2056 },
2049 // NOTE: Adding new command-line switches requires adding corresponding 2057 // NOTE: Adding new command-line switches requires adding corresponding
2050 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2058 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2051 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2059 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2052 }; 2060 };
2053 2061
2054 const Experiment* experiments = kExperiments; 2062 const Experiment* experiments = kExperiments;
2055 size_t num_experiments = arraysize(kExperiments); 2063 size_t num_experiments = arraysize(kExperiments);
2056 2064
2057 // Stores and encapsulates the little state that about:flags has. 2065 // Stores and encapsulates the little state that about:flags has.
2058 class FlagsState { 2066 class FlagsState {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2624 } 2632 }
2625 2633
2626 const Experiment* GetExperiments(size_t* count) { 2634 const Experiment* GetExperiments(size_t* count) {
2627 *count = num_experiments; 2635 *count = num_experiments;
2628 return experiments; 2636 return experiments;
2629 } 2637 }
2630 2638
2631 } // namespace testing 2639 } // namespace testing
2632 2640
2633 } // namespace about_flags 2641 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698