OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/password_manager/core/browser/password_manager_util.h" | 5 #include "components/password_manager/core/browser/password_manager_util.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "components/autofill/core/common/password_form.h" | 9 #include "components/autofill/core/common/password_form.h" |
10 #include "components/password_manager/core/browser/log_manager.h" | 10 #include "components/password_manager/core/browser/log_manager.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 old_vector.weak_clear(); // All owned by |new_vector| by now. | 85 old_vector.weak_clear(); // All owned by |new_vector| by now. |
86 return new_vector; | 86 return new_vector; |
87 } | 87 } |
88 | 88 |
89 bool IsLoggingActive(const password_manager::PasswordManagerClient* client) { | 89 bool IsLoggingActive(const password_manager::PasswordManagerClient* client) { |
90 const password_manager::LogManager* log_manager = client->GetLogManager(); | 90 const password_manager::LogManager* log_manager = client->GetLogManager(); |
91 return log_manager && log_manager->IsLoggingActive(); | 91 return log_manager && log_manager->IsLoggingActive(); |
92 } | 92 } |
93 | 93 |
| 94 bool IsFeatureDisabledFromCommandLine(const base::Feature& feature) { |
| 95 return base::FeatureList::GetInstance()->IsFeatureOverriddenFromCommandLine( |
| 96 feature.name, base::FeatureList::OVERRIDE_DISABLE_FEATURE); |
| 97 } |
| 98 |
94 } // namespace password_manager_util | 99 } // namespace password_manager_util |
OLD | NEW |