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

Unified Diff: chrome/utility/profile_import_handler.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
Index: chrome/utility/profile_import_handler.cc
diff --git a/chrome/utility/profile_import_handler.cc b/chrome/utility/profile_import_handler.cc
index 62ad7390e67b611a44ff6125bab2edf4d0e01932..3a57d4f446372add189fe5b2142130db927a3695 100644
--- a/chrome/utility/profile_import_handler.cc
+++ b/chrome/utility/profile_import_handler.cc
@@ -44,6 +44,7 @@ void ProfileImportHandler::OnImportStart(
const importer::SourceProfile& source_profile,
uint16 items,
const base::DictionaryValue& localized_strings) {
+ content::UtilityThread::Get()->EnsureBlinkInitialized();
bridge_ = new ExternalProcessImporterBridge(
localized_strings,
content::UtilityThread::Get(),

Powered by Google App Engine
This is Rietveld 408576698