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

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

Issue 118713004: Add a switch for enabling the ManagePasswordsBubbleUI to the about:flags page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: name changes Created 6 years, 12 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | 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 <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1943 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_DESCRIPTION, 1943 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_DESCRIPTION,
1944 kOsCrOS | kOsMac | kOsWin, 1944 kOsCrOS | kOsMac | kOsWin,
1945 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) 1945 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices)
1946 }, 1946 },
1947 { 1947 {
1948 "enable-ignore-autocomplete-off", 1948 "enable-ignore-autocomplete-off",
1949 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME, 1949 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME,
1950 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION, 1950 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION,
1951 kOsAll, 1951 kOsAll,
1952 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff) 1952 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff)
1953 },
1954 #if defined(USE_AURA) || defined(OS_WIN)
1955 {
1956 "enable-save-password-bubble",
1957 IDS_FLAGS_ENABLE_PASSWORD_BUBBLE_NAME,
1958 IDS_FLAGS_ENABLE_PASSWORD_BUBBLE_DESCRIPTION,
1959 kOsWin | kOsCrOS,
1960 SINGLE_VALUE_TYPE(switches::kEnableSavePasswordBubble)
1953 } 1961 }
1962 #endif
1954 }; 1963 };
1955 1964
1956 const Experiment* experiments = kExperiments; 1965 const Experiment* experiments = kExperiments;
1957 size_t num_experiments = arraysize(kExperiments); 1966 size_t num_experiments = arraysize(kExperiments);
1958 1967
1959 // Stores and encapsulates the little state that about:flags has. 1968 // Stores and encapsulates the little state that about:flags has.
1960 class FlagsState { 1969 class FlagsState {
1961 public: 1970 public:
1962 FlagsState() : needs_restart_(false) {} 1971 FlagsState() : needs_restart_(false) {}
1963 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1972 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 } 2463 }
2455 2464
2456 const Experiment* GetExperiments(size_t* count) { 2465 const Experiment* GetExperiments(size_t* count) {
2457 *count = num_experiments; 2466 *count = num_experiments;
2458 return experiments; 2467 return experiments;
2459 } 2468 }
2460 2469
2461 } // namespace testing 2470 } // namespace testing
2462 2471
2463 } // namespace about_flags 2472 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698