Index: chrome/utility/extensions/extensions_handler.cc |
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc |
index 06d83c011380ef89f5575f28a5973a891d40b70b..100ee4a98bef911ff3c3f2130b19f6b17bf63ffc 100644 |
--- a/chrome/utility/extensions/extensions_handler.cc |
+++ b/chrome/utility/extensions/extensions_handler.cc |
@@ -86,7 +86,6 @@ bool ExtensionsHandler::OnMessageReceived(const IPC::Message& message) { |
IPC_BEGIN_MESSAGE_MAP(ExtensionsHandler, message) |
IPC_MESSAGE_HANDLER(ChromeUtilityMsg_UnpackExtension, OnUnpackExtension) |
IPC_MESSAGE_HANDLER(ChromeUtilityMsg_UnzipToDir, OnUnzipToDir) |
- IPC_MESSAGE_HANDLER(ChromeUtilityMsg_DecodeImageBase64, OnDecodeImageBase64) |
IPC_MESSAGE_HANDLER(ChromeUtilityMsg_CheckMediaFile, OnCheckMediaFile) |
#if defined(OS_WIN) |
IPC_MESSAGE_HANDLER(ChromeUtilityMsg_ParseITunesPrefXml, |
@@ -153,23 +152,6 @@ void ExtensionsHandler::OnUnzipToDir(const base::FilePath& zip_path, |
ReleaseProcessIfNeeded(); |
} |
-void ExtensionsHandler::OnDecodeImageBase64( |
- const std::string& encoded_string) { |
- std::string decoded_string; |
- |
- if (!base::Base64Decode(encoded_string, &decoded_string)) { |
- Send(new ChromeUtilityHostMsg_DecodeImage_Failed()); |
- return; |
- } |
- |
- std::vector<unsigned char> decoded_vector(decoded_string.size()); |
- for (size_t i = 0; i < decoded_string.size(); ++i) { |
- decoded_vector[i] = static_cast<unsigned char>(decoded_string[i]); |
- } |
- |
- ChromeContentUtilityClient::DecodeImageAndSend(decoded_vector, false); |
-} |
- |
void ExtensionsHandler::OnCheckMediaFile( |
int64 milliseconds_of_decoding, |
const IPC::PlatformFileForTransit& media_file) { |