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

Side by Side Diff: chrome/utility/importer/external_process_importer_bridge.cc

Issue 616763002: Importing certain bookmarks from firefox and HTML file as search engines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed dependency issue. Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/utility/importer/external_process_importer_bridge.h" 5 #include "chrome/utility/importer/external_process_importer_bridge.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/dump_without_crashing.h" 8 #include "base/debug/dump_without_crashing.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 Send(new ProfileImportProcessHostMsg_NotifyHistoryImportGroup( 120 Send(new ProfileImportProcessHostMsg_NotifyHistoryImportGroup(
121 row_group, visit_source)); 121 row_group, visit_source));
122 rows_left -= end_group - it; 122 rows_left -= end_group - it;
123 it = end_group; 123 it = end_group;
124 } 124 }
125 DCHECK_EQ(0, rows_left); 125 DCHECK_EQ(0, rows_left);
126 } 126 }
127 127
128 void ExternalProcessImporterBridge::SetKeywords( 128 void ExternalProcessImporterBridge::SetKeywords(
129 const std::vector<importer::URLKeywordInfo>& url_keywords, 129 const std::vector<importer::SearchEngineInfo>& search_engines,
130 bool unique_on_host_and_path) { 130 bool unique_on_host_and_path) {
131 Send(new ProfileImportProcessHostMsg_NotifyKeywordsReady( 131 Send(new ProfileImportProcessHostMsg_NotifyKeywordsReady(
132 url_keywords, unique_on_host_and_path)); 132 search_engines, unique_on_host_and_path));
133 } 133 }
134 134
135 void ExternalProcessImporterBridge::SetFirefoxSearchEnginesXMLData( 135 void ExternalProcessImporterBridge::SetFirefoxSearchEnginesXMLData(
136 const std::vector<std::string>& search_engine_data) { 136 const std::vector<std::string>& search_engine_data) {
137 Send(new ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData( 137 Send(new ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData(
138 search_engine_data)); 138 search_engine_data));
139 } 139 }
140 140
141 void ExternalProcessImporterBridge::SetPasswordForm( 141 void ExternalProcessImporterBridge::SetPasswordForm(
142 const autofill::PasswordForm& form) { 142 const autofill::PasswordForm& form) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 task_runner_->PostTask( 200 task_runner_->PostTask(
201 FROM_HERE, 201 FROM_HERE,
202 base::Bind(&ExternalProcessImporterBridge::SendInternal, 202 base::Bind(&ExternalProcessImporterBridge::SendInternal,
203 this, message)); 203 this, message));
204 } 204 }
205 205
206 void ExternalProcessImporterBridge::SendInternal(IPC::Message* message) { 206 void ExternalProcessImporterBridge::SendInternal(IPC::Message* message) {
207 DCHECK(task_runner_->RunsTasksOnCurrentThread()); 207 DCHECK(task_runner_->RunsTasksOnCurrentThread());
208 sender_->Send(message); 208 sender_->Send(message);
209 } 209 }
OLDNEW
« no previous file with comments | « chrome/utility/importer/external_process_importer_bridge.h ('k') | chrome/utility/importer/firefox_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698