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

Unified Diff: chrome/utility/extensions/extensions_handler.cc

Issue 931993002: Make image_decoder a Leaky LazyInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename instance_ to image_decoder_instance_ for mac linker Created 5 years, 10 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
Index: chrome/utility/extensions/extensions_handler.cc
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc
index 72930f55b18c1843e187a1d38aa634ce396c419d..74074b5d3d293f03748ef5a326b90b4dd55e3926 100644
--- a/chrome/utility/extensions/extensions_handler.cc
+++ b/chrome/utility/extensions/extensions_handler.cc
@@ -128,7 +128,8 @@ void ExtensionsHandler::OnDecodeImageBase64(
std::string decoded_string;
if (!base::Base64Decode(encoded_string, &decoded_string)) {
- Send(new ChromeUtilityHostMsg_DecodeImage_Failed());
+ Send(new ChromeUtilityHostMsg_DecodeImage_Failed(
+ chromeutility::DUMMY_IMAGE_DELEGATE_ID));
return;
}
@@ -137,7 +138,8 @@ void ExtensionsHandler::OnDecodeImageBase64(
decoded_vector[i] = static_cast<unsigned char>(decoded_string[i]);
}
- ChromeContentUtilityClient::DecodeImageAndSend(decoded_vector, false);
+ ChromeContentUtilityClient::DecodeImageAndSend(
+ decoded_vector, false, chromeutility::DUMMY_IMAGE_DELEGATE_ID);
}
void ExtensionsHandler::OnCheckMediaFile(
« chrome/common/chrome_utility_messages.h ('K') | « chrome/utility/chrome_content_utility_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698