| Index: chrome/browser/chromeos/cros/cert_library.cc
|
| diff --git a/chrome/browser/chromeos/cros/cert_library.cc b/chrome/browser/chromeos/cros/cert_library.cc
|
| index 8257ad0630942159c1e869b66328f4f741b8e2a5..cf19ad8734dc211ea35ea996532cadaa41ff0e39 100644
|
| --- a/chrome/browser/chromeos/cros/cert_library.cc
|
| +++ b/chrome/browser/chromeos/cros/cert_library.cc
|
| @@ -197,6 +197,10 @@ class CertLibraryImpl
|
| }
|
|
|
| virtual std::string EncryptToken(const std::string& token) OVERRIDE {
|
| + // Don't care about token encryption while debugging.
|
| + if (!base::chromeos::IsRunningOnChromeOS())
|
| + return token;
|
| +
|
| if (!LoadSupplementalUserKey()) {
|
| LOG(WARNING) << "Supplemental user key is not available for encrypt.";
|
| return std::string();
|
| @@ -224,6 +228,10 @@ class CertLibraryImpl
|
|
|
| virtual std::string DecryptToken(
|
| const std::string& encrypted_token_hex) OVERRIDE {
|
| + // Don't care about token encryption while debugging.
|
| + if (!base::chromeos::IsRunningOnChromeOS())
|
| + return encrypted_token_hex;
|
| +
|
| if (!LoadSupplementalUserKey()) {
|
| LOG(WARNING) << "Supplemental user key is not available for decrypt.";
|
| return std::string();
|
|
|