summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/profile_import/profile_import_thread.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/profile_import/profile_import_thread.cc b/chrome/profile_import/profile_import_thread.cc
index 4a7ca13..4fa7cc3a 100644
--- a/chrome/profile_import/profile_import_thread.cc
+++ b/chrome/profile_import/profile_import_thread.cc
@@ -49,16 +49,16 @@ void ProfileImportThread::OnImportStart(
ImporterList importer_list;
importer_ = importer_list.CreateImporterByType(profile_info.browser_type);
- importer_->AddRef(); // Balanced in Cleanup().
- importer_->set_import_to_bookmark_bar(import_to_bookmark_bar);
- items_to_import_ = items;
-
if (!importer_) {
Send(new ProfileImportProcessHostMsg_Import_Finished(false,
"Importer could not be created."));
return;
}
+ importer_->AddRef(); // Balanced in Cleanup().
+ importer_->set_import_to_bookmark_bar(import_to_bookmark_bar);
+ items_to_import_ = items;
+
// Create worker thread in which importer runs.
import_thread_.reset(new base::Thread("import_thread"));
base::Thread::Options options;