Index: chrome/browser/importer/external_process_importer_client.cc |
=================================================================== |
--- chrome/browser/importer/external_process_importer_client.cc (revision 208750) |
+++ chrome/browser/importer/external_process_importer_client.cc (working copy) |
@@ -13,8 +13,6 @@ |
#include "chrome/browser/importer/importer_host.h" |
#include "chrome/browser/importer/in_process_importer_bridge.h" |
#include "chrome/browser/importer/profile_import_process_messages.h" |
-#include "chrome/browser/search_engines/template_url.h" |
-#include "chrome/browser/search_engines/template_url_service.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/utility_process_host.h" |
#include "grit/generated_resources.h" |
@@ -103,6 +101,9 @@ |
OnPasswordFormImportReady) |
IPC_MESSAGE_HANDLER(ProfileImportProcessHostMsg_NotifyKeywordsReady, |
OnKeywordsImportReady) |
+ IPC_MESSAGE_HANDLER( |
+ ProfileImportProcessHostMsg_NotifyFirefoxSearchEngineData, |
+ OnFirefoxSearchEngineDataReceived) |
scottmg
2013/06/27 15:47:21
nit; make indent match other messages
ananta
2013/06/27 15:56:49
Changed the IPC name to ProfileImportProcessHostMs
|
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -229,13 +230,18 @@ |
} |
void ExternalProcessImporterClient::OnKeywordsImportReady( |
- const std::vector<TemplateURL*>& template_urls, |
+ const std::vector<importer::URLKeywordInfo>& url_keywords, |
bool unique_on_host_and_path) { |
if (cancelled_) |
return; |
+ bridge_->SetKeywords(url_keywords, unique_on_host_and_path); |
+} |
- bridge_->SetKeywords(template_urls, unique_on_host_and_path); |
- // The pointers in |template_urls| have now been deleted. |
+void ExternalProcessImporterClient::OnFirefoxSearchEngineDataReceived( |
+ const std::vector<std::string> search_engine_data) { |
+ if (cancelled_) |
+ return; |
+ bridge_->SetFirefoxSearchEnginesXMLData(search_engine_data); |
} |
ExternalProcessImporterClient::~ExternalProcessImporterClient() {} |