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

Side by Side Diff: components/password_manager/core/browser/password_manager_util.h

Issue 1668523002: [Password Manager] Switch password manager code to use the Feature framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
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 "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 15
16 namespace autofill { 16 namespace autofill {
17 struct PasswordForm; 17 struct PasswordForm;
18 } 18 }
19 19
20 namespace base {
21 class FeatureList;
22 }
23
20 namespace sync_driver { 24 namespace sync_driver {
21 class SyncService; 25 class SyncService;
22 } 26 }
23 27
24 namespace password_manager_util { 28 namespace password_manager_util {
25 29
26 // Reports whether and how passwords are currently synced. In particular, for a 30 // Reports whether and how passwords are currently synced. In particular, for a
27 // null |sync_service| returns NOT_SYNCING_PASSWORDS. 31 // null |sync_service| returns NOT_SYNCING_PASSWORDS.
28 password_manager::PasswordSyncState GetPasswordSyncState( 32 password_manager::PasswordSyncState GetPasswordSyncState(
29 const sync_driver::SyncService* sync_service); 33 const sync_driver::SyncService* sync_service);
(...skipping 18 matching lines...) Expand all
48 // finished for PasswordForm. 52 // finished for PasswordForm.
49 std::vector<scoped_ptr<autofill::PasswordForm>> ConvertScopedVector( 53 std::vector<scoped_ptr<autofill::PasswordForm>> ConvertScopedVector(
50 ScopedVector<autofill::PasswordForm> old_vector); 54 ScopedVector<autofill::PasswordForm> old_vector);
51 55
52 // A convenience function for testing that |client| has a non-null LogManager 56 // A convenience function for testing that |client| has a non-null LogManager
53 // and that that LogManager returns true for IsLoggingActive. This function can 57 // and that that LogManager returns true for IsLoggingActive. This function can
54 // be removed once PasswordManagerClient::GetLogManager is implemented on iOS 58 // be removed once PasswordManagerClient::GetLogManager is implemented on iOS
55 // and required to always return non-null. 59 // and required to always return non-null.
56 bool IsLoggingActive(const password_manager::PasswordManagerClient* client); 60 bool IsLoggingActive(const password_manager::PasswordManagerClient* client);
57 61
62 // Helper function to registers a field trial to override the enabled state of
63 // the password manager features.
64 void RegisterFieldTrials(base::FeatureList* feature_list);
65
58 } // namespace password_manager_util 66 } // namespace password_manager_util
59 67
60 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_ 68 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698