OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "components/password_manager/core/browser/password_manager_client.h" | 13 #include "components/password_manager/core/browser/password_manager_client.h" |
| 14 #include "components/password_manager/core/common/password_manager_features.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 | 16 |
16 namespace autofill { | 17 namespace autofill { |
17 struct PasswordForm; | 18 struct PasswordForm; |
18 } | 19 } |
19 | 20 |
20 namespace sync_driver { | 21 namespace sync_driver { |
21 class SyncService; | 22 class SyncService; |
22 } | 23 } |
23 | 24 |
(...skipping 24 matching lines...) Expand all Loading... |
48 // finished for PasswordForm. | 49 // finished for PasswordForm. |
49 std::vector<scoped_ptr<autofill::PasswordForm>> ConvertScopedVector( | 50 std::vector<scoped_ptr<autofill::PasswordForm>> ConvertScopedVector( |
50 ScopedVector<autofill::PasswordForm> old_vector); | 51 ScopedVector<autofill::PasswordForm> old_vector); |
51 | 52 |
52 // A convenience function for testing that |client| has a non-null LogManager | 53 // A convenience function for testing that |client| has a non-null LogManager |
53 // and that that LogManager returns true for IsLoggingActive. This function can | 54 // and that that LogManager returns true for IsLoggingActive. This function can |
54 // be removed once PasswordManagerClient::GetLogManager is implemented on iOS | 55 // be removed once PasswordManagerClient::GetLogManager is implemented on iOS |
55 // and required to always return non-null. | 56 // and required to always return non-null. |
56 bool IsLoggingActive(const password_manager::PasswordManagerClient* client); | 57 bool IsLoggingActive(const password_manager::PasswordManagerClient* client); |
57 | 58 |
| 59 // Returns true if feature is disabled from commond line. |
| 60 bool IsFeatureDisabledFromCommandLine(const base::Feature& feature); |
| 61 |
58 } // namespace password_manager_util | 62 } // namespace password_manager_util |
59 | 63 |
60 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_ | 64 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_ |
OLD | NEW |