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

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

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: 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
===================================================================
--- chrome/browser/chromeos/cros/cert_library.cc (revision 177312)
+++ chrome/browser/chromeos/cros/cert_library.cc (working copy)
@@ -197,6 +197,10 @@
}
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 @@
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();
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698