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

Unified Diff: chrome/browser/importer/external_process_importer_bridge.cc

Issue 8726023: Remove ChildThread dependency from Chrome. In the future we might want to expose it as an interfa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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/browser/importer/external_process_importer_bridge.cc
===================================================================
--- chrome/browser/importer/external_process_importer_bridge.cc (revision 111804)
+++ chrome/browser/importer/external_process_importer_bridge.cc (working copy)
@@ -10,7 +10,6 @@
#include "base/values.h"
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/importer/profile_import_process_messages.h"
-#include "content/common/child_thread.h"
#include "webkit/glue/password_form.h"
#if defined(OS_WIN)
@@ -27,7 +26,9 @@
}
ExternalProcessImporterBridge::ExternalProcessImporterBridge(
- const DictionaryValue& localized_strings) {
+ const DictionaryValue& localized_strings,
+ IPC::Message::Sender* sender)
+ : sender_(sender) {
// Bridge needs to make its own copy because OS 10.6 autoreleases the
// localized_strings value that is passed in (see http://crbug.com/46003 ).
localized_strings_.reset(localized_strings.DeepCopy());
@@ -144,5 +145,5 @@
ExternalProcessImporterBridge::~ExternalProcessImporterBridge() {}
bool ExternalProcessImporterBridge::Send(IPC::Message* message) {
- return ChildThread::current()->Send(message);
+ return sender_->Send(message);
}

Powered by Google App Engine
This is Rietveld 408576698