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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 1251823002: Initialize blink only when needed in utility processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | chrome/utility/profile_import_handler.cc » ('j') | content/public/utility/utility_thread.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 9671be86427ef4c633dadcc7efaa03b4caec723c..440ff96a24a140f0bbe74cbdb2943d738af39a93 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -291,6 +291,7 @@ void ChromeContentUtilityClient::OnDecodeImage(
const std::vector<unsigned char>& encoded_data,
bool shrink_to_fit,
int request_id) {
+ content::UtilityThread::Get()->EnsureBlinkInitialized();
DecodeImageAndSend(encoded_data, shrink_to_fit, request_id);
}
« no previous file with comments | « no previous file | chrome/utility/profile_import_handler.cc » ('j') | content/public/utility/utility_thread.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698