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

Unified Diff: chrome/browser/password_manager/encryptor_password_mac.mm

Issue 6873156: Move crypto_helpers from sync to base (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Follow bbretw review Created 9 years, 8 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
« no previous file with comments | « base/rand_util_unittest.cc ('k') | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/encryptor_password_mac.mm
diff --git a/chrome/browser/password_manager/encryptor_password_mac.mm b/chrome/browser/password_manager/encryptor_password_mac.mm
index a9550439e9f284b6806018a878341dd9a173787d..ffdf24ce5cd98ecefb12d9e7d93925814be08101 100644
--- a/chrome/browser/password_manager/encryptor_password_mac.mm
+++ b/chrome/browser/password_manager/encryptor_password_mac.mm
@@ -7,7 +7,7 @@
#import <Security/Security.h>
#include "chrome/browser/keychain_mac.h"
-#include "chrome/browser/sync/util/crypto_helpers.h"
+#include "chrome/common/random.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
@@ -18,7 +18,7 @@ namespace {
std::string AddRandomPasswordToKeychain(const MacKeychain& keychain,
const std::string& service_name,
const std::string& account_name) {
- std::string password = Generate128BitRandomHexString();
+ std::string password = Generate128BitRandomBase64String();
void* password_data =
const_cast<void*>(static_cast<const void*>(password.data()));
« no previous file with comments | « base/rand_util_unittest.cc ('k') | chrome/browser/sync/engine/syncapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698