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

Unified Diff: chrome/utility/profile_import_handler.cc

Issue 12670013: Out-of-process import on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep Google Toolbar import in-process. Created 7 years, 8 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 413feea3bea0166e91c0bee30f171148a31fb4ae..6aec9b98d3b5c63974d96ccd973e05105870159e 100644
--- a/chrome/utility/profile_import_handler.cc
+++ b/chrome/utility/profile_import_handler.cc
@@ -49,9 +49,10 @@ void ProfileImportHandler::OnImportStart(
// Create worker thread in which importer runs.
import_thread_.reset(new base::Thread("import_thread"));
- base::Thread::Options options;
- options.message_loop_type = MessageLoop::TYPE_IO;
- if (!import_thread_->StartWithOptions(options)) {
+#if defined(OS_WIN)
+ import_thread_->init_com_with_mta(false);
+#endif
+ if (!import_thread_->Start()) {
NOTREACHED();
ImporterCleanup();
}

Powered by Google App Engine
This is Rietveld 408576698