| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_SYNC_METRICS_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_SYNC_METRICS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "components/password_manager/core/common/sync_state.h" |
| 11 |
| 12 class Profile; |
| 13 |
| 14 namespace password_manager_sync_metrics { |
| 15 |
| 16 // Returns the current state of syncing as is interesting to the password |
| 17 // manager and the username of the account currently syncing, if there is one. |
| 18 // |sync_username| is unchanged if sync is not currrently enabled. |
| 19 void GetSyncUsernameAndState(Profile* profile, |
| 20 std::string* sync_username, |
| 21 password_manager::SyncState* sync_state); |
| 22 |
| 23 } // namespace password_manager_sync_metrics |
| 24 |
| 25 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SYNC_METRICS_H_ |
| OLD | NEW |