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

Unified Diff: trunk/src/chrome/browser/extensions/api/identity/web_auth_flow.cc

Issue 111883004: Revert 239921 "Revert 239759 "The comment in base64.h implies th..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Index: trunk/src/chrome/browser/extensions/api/identity/web_auth_flow.cc
===================================================================
--- trunk/src/chrome/browser/extensions/api/identity/web_auth_flow.cc (revision 239942)
+++ trunk/src/chrome/browser/extensions/api/identity/web_auth_flow.cc (working copy)
@@ -76,8 +76,7 @@
// in OnShellWindowAdded.
std::string random_bytes;
crypto::RandBytes(WriteInto(&random_bytes, 33), 32);
- bool success = base::Base64Encode(random_bytes, &shell_window_key_);
- DCHECK(success);
+ base::Base64Encode(random_bytes, &shell_window_key_);
// identityPrivate.onWebFlowRequest(shell_window_key, provider_url_, mode_)
scoped_ptr<base::ListValue> args(new base::ListValue());

Powered by Google App Engine
This is Rietveld 408576698