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

Unified Diff: chrome/browser/chromeos/cros/cert_library.cc

Issue 11649055: OAuth2 sign-in flow for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698