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

Unified Diff: utils/pub/oauth2.dart

Issue 11565046: Don't log a user's credentials. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix a bug. Created 8 years 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
« utils/pub/io.dart ('K') | « utils/pub/io.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/oauth2.dart
diff --git a/utils/pub/oauth2.dart b/utils/pub/oauth2.dart
index 78cd4c2766cf2d2fb0a577c0fc43e25c96a9a3c6..ec3d745f2d2a29af175592cc10d985102edfb6c6 100644
--- a/utils/pub/oauth2.dart
+++ b/utils/pub/oauth2.dart
@@ -139,7 +139,7 @@ Future _saveCredentials(SystemCache cache, Credentials credentials) {
_credentials = credentials;
var path = _credentialsFile(cache);
return ensureDir(dirname(path)).chain((_) =>
- writeTextFile(path, credentials.toJson()));
+ writeTextFile(path, credentials.toJson(), dontLogContents: true));
}
/// The path to the file in which the user's OAuth2 credentials are stored.
« utils/pub/io.dart ('K') | « utils/pub/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698