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

Unified Diff: trunk/src/chrome/browser/managed_mode/managed_user_registration_utility.cc

Issue 101113004: Revert 239759 "The comment in base64.h implies that base::Base64..." (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/managed_mode/managed_user_registration_utility.cc
===================================================================
--- trunk/src/chrome/browser/managed_mode/managed_user_registration_utility.cc (revision 239920)
+++ trunk/src/chrome/browser/managed_mode/managed_user_registration_utility.cc (working copy)
@@ -150,7 +150,9 @@
// static
std::string ManagedUserRegistrationUtility::GenerateNewManagedUserId() {
std::string new_managed_user_id;
- base::Base64Encode(base::RandBytesAsString(8), &new_managed_user_id);
+ bool success = base::Base64Encode(base::RandBytesAsString(8),
+ &new_managed_user_id);
+ DCHECK(success);
return new_managed_user_id;
}
« no previous file with comments | « trunk/src/chrome/browser/internal_auth.cc ('k') | trunk/src/chrome/browser/media/desktop_streams_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698