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 class Profile; |
| 11 |
| 12 namespace password_manager_sync_metrics { |
| 13 |
| 14 // Returns the sync username for |profile|. Returns an empty string if the |
| 15 // |profile| isn't syncing passwords. |
| 16 std::string GetPasswordSyncUsername(Profile* profile); |
| 17 |
| 18 // Returns true if |username| and |origin| correspond to the account which is |
| 19 // syncing passwords. Will return false if |profile| is not syncing passwords. |
| 20 bool IsPasswordSyncAccountCredential(Profile* profile, |
| 21 const std::string& username, |
| 22 const std::string& origin); |
| 23 |
| 24 } // namespace password_manager_sync_metrics |
| 25 |
| 26 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SYNC_METRICS_H_ |
OLD | NEW |