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

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: Created 6 years, 4 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 | 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 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 kOsWin | kOsLinux | kOsCrOS, 1907 kOsWin | kOsLinux | kOsCrOS,
1908 SINGLE_VALUE_TYPE(extensions::switches::kEnableExtensionActionRedesign) 1908 SINGLE_VALUE_TYPE(extensions::switches::kEnableExtensionActionRedesign)
1909 }, 1909 },
1910 { 1910 {
1911 "autofill-sync-credential", 1911 "autofill-sync-credential",
1912 IDS_FLAGS_AUTOFILL_SYNC_CREDENTIAL_NAME, 1912 IDS_FLAGS_AUTOFILL_SYNC_CREDENTIAL_NAME,
1913 IDS_FLAGS_AUTOFILL_SYNC_CREDENTIAL_DESCRIPTION, 1913 IDS_FLAGS_AUTOFILL_SYNC_CREDENTIAL_DESCRIPTION,
1914 kOsAll, 1914 kOsAll,
1915 MULTI_VALUE_TYPE(kAutofillSyncCredentialChoices) 1915 MULTI_VALUE_TYPE(kAutofillSyncCredentialChoices)
1916 }, 1916 },
1917 {
1918 "enable-fill-on-account-select",
1919 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_NAME,
1920 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_DESCRIPTION,
1921 kOsAll,
1922 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect,
1923 autofill::switches::kDisableFillOnAccountSelect)
1924 },
1917 // NOTE: Adding new command-line switches requires adding corresponding 1925 // NOTE: Adding new command-line switches requires adding corresponding
1918 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1926 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1919 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1927 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1920 }; 1928 };
1921 1929
1922 const Experiment* experiments = kExperiments; 1930 const Experiment* experiments = kExperiments;
1923 size_t num_experiments = arraysize(kExperiments); 1931 size_t num_experiments = arraysize(kExperiments);
1924 1932
1925 // Stores and encapsulates the little state that about:flags has. 1933 // Stores and encapsulates the little state that about:flags has.
1926 class FlagsState { 1934 class FlagsState {
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 } 2494 }
2487 2495
2488 const Experiment* GetExperiments(size_t* count) { 2496 const Experiment* GetExperiments(size_t* count) {
2489 *count = num_experiments; 2497 *count = num_experiments;
2490 return experiments; 2498 return experiments;
2491 } 2499 }
2492 2500
2493 } // namespace testing 2501 } // namespace testing
2494 2502
2495 } // namespace about_flags 2503 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698