summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 22:35:50 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 22:35:50 +0000
commit986535699f5e7016db8617e175a2f564d05a8b72 (patch)
tree087575da0cbbf7d4f7a6a63522a4b0ea6db684ef /chrome/browser/extensions
parent80d96fa5cd180d0fdda215f8ed52cfd39ef59423 (diff)
downloadchromium_src-986535699f5e7016db8617e175a2f564d05a8b72.zip
chromium_src-986535699f5e7016db8617e175a2f564d05a8b72.tar.gz
chromium_src-986535699f5e7016db8617e175a2f564d05a8b72.tar.bz2
Fix UMR in ExtensionCreator.
Review URL: http://codereview.chromium.org/119443 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rwxr-xr-xchrome/browser/extensions/extension_creator.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_creator.cc b/chrome/browser/extensions/extension_creator.cc
index 4b6c8a9..8c38e17 100755
--- a/chrome/browser/extensions/extension_creator.cc
+++ b/chrome/browser/extensions/extension_creator.cc
@@ -92,8 +92,9 @@ base::RSAPrivateKey* ExtensionCreator::GenerateKey(const FilePath&
error_message_ = "Failed to export private key.";
return NULL;
}
- std::string private_key_bytes(private_key_vector.begin(),
- private_key_vector.end());
+ std::string private_key_bytes(
+ reinterpret_cast<char*>(&private_key_vector.front()),
+ private_key_vector.size());
std::string private_key;
if (!Extension::ProducePEM(private_key_bytes, &private_key)) {