Chromium Code Reviews| Index: chrome/browser/signin/local_auth.h |
| diff --git a/chrome/browser/signin/local_auth.h b/chrome/browser/signin/local_auth.h |
| index 2342a8142a2da6591238c44e2bba0a85401cd6b0..ed3d5cd91bb22ee0a059a4ccfc15f4439d258c15 100644 |
| --- a/chrome/browser/signin/local_auth.h |
| +++ b/chrome/browser/signin/local_auth.h |
| @@ -33,6 +33,9 @@ bool ValidateLocalAuthCredentials(size_t profile_info_index, |
| bool ValidateLocalAuthCredentials(const Profile* profile, |
| const std::string& password); |
| +// Return only the first |len_bits| bits of the string |str|. |
| +std::string TruncateStringByBits(const std::string& str, const size_t len_bits); |
|
bcwhite
2015/01/21 21:04:40
Why does this need to be public?
Mike Lerman
2015/01/27 21:02:26
So I can unit test it.
jww
2015/01/29 11:44:45
For unit tests, I've generally made methods privat
Mike Lerman
2015/01/29 16:57:42
I would - if this was a class. Sadly, it's a names
jww
2015/01/29 17:40:57
Lulz, totally missed that. Nevermind :-)
|
| + |
| } // namespace chrome |
| #endif // CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_ |