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

Issue 18064002: The browser importer code which runs in the utility process should not depend on chrome\browser dat… (Closed)

Created:
7 years, 5 months ago by ananta
Modified:
7 years, 5 months ago
CC:
chromium-reviews, tfarina, jamesr
Visibility:
Public.

Description

The browser importer code which runs in the utility process should not depend on chrome\browser data types like TemplateURL, etc. This CL removes the usage of chrome\browser\search_engines\template_url** from the ExternalProcessImporterBridge class. To achieve this, a structure URLKeywordInfo has been added to the importer_data_types.h file. The ImporterBridge::SetKeywords virtual function has been changed to accept a vector of the URLKeywordInfo structures. This is converted to TempateURL instances in the InProcessImporterBridge class which lives in the browser process. The other change is in the Firefox3 importer where in we pass the Firefox profile XML data in a vector to the browser via the newly added virtual function ImporterBridge::SetFirefoxSearchEnginesXMLData. The ExternalProcessImporterBridge implementation of this function sends over the XML data via an IPC to the browser. The InProcessImporterBridge implementation parses this data to retrieve the search engine information which is then imported. This is continuation of the ongoing work for bug https://code.google.com/p/chromium/issues/detail?can=2&q=237249 which is to split chrome.dll into a browser and a renderer/child component due to build issues on Windows. To achieve this we need to ensure that the browser code does not depend on webkit/child. BUG=237249 R=gab@chromium.org, jschuh@chromium.org, scottmg@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209072

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Total comments: 19

Patch Set 8 : #

Total comments: 16

Patch Set 9 : #

Total comments: 5

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -238 lines) Patch
M chrome/browser/importer/external_process_importer_bridge.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/importer/external_process_importer_bridge.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/importer/external_process_importer_client.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/importer/external_process_importer_client.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/importer/firefox3_importer.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/importer/firefox3_importer.cc View 1 2 3 4 5 6 7 9 chunks +23 lines, -39 lines 0 comments Download
M chrome/browser/importer/firefox_importer_utils.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/importer/firefox_importer_utils.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -76 lines 0 comments Download
M chrome/browser/importer/ie_importer.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -17 lines 0 comments Download
M chrome/browser/importer/importer_bridge.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/importer/importer_data_types.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/importer/in_process_importer_bridge.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/importer/in_process_importer_bridge.cc View 1 2 3 4 5 6 7 8 9 3 chunks +120 lines, -3 lines 0 comments Download
M chrome/browser/importer/profile_import_process_messages.h View 1 2 3 4 5 6 7 2 chunks +24 lines, -74 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
ananta
7 years, 5 months ago (2013-06-27 13:06:48 UTC) #1
scottmg
lgtm, but gab will know better :) https://codereview.chromium.org/18064002/diff/36003/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/18064002/diff/36003/chrome/browser/importer/external_process_importer_client.cc#newcode106 chrome/browser/importer/external_process_importer_client.cc:106: OnFirefoxSearchEngineDataReceived) nit; ...
7 years, 5 months ago (2013-06-27 15:47:21 UTC) #2
ananta
https://codereview.chromium.org/18064002/diff/36003/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/18064002/diff/36003/chrome/browser/importer/external_process_importer_client.cc#newcode106 chrome/browser/importer/external_process_importer_client.cc:106: OnFirefoxSearchEngineDataReceived) On 2013/06/27 15:47:21, scottmg wrote: > nit; make ...
7 years, 5 months ago (2013-06-27 15:56:49 UTC) #3
jschuh
ipc security lgtm. communication is privileged process to privileged process, so there's no attack surface ...
7 years, 5 months ago (2013-06-27 16:16:28 UTC) #4
scottmg
On 2013/06/27 15:56:49, ananta wrote: > https://codereview.chromium.org/18064002/diff/36003/chrome/browser/importer/external_process_importer_client.cc > File chrome/browser/importer/external_process_importer_client.cc (right): > > https://codereview.chromium.org/18064002/diff/36003/chrome/browser/importer/external_process_importer_client.cc#newcode106 > ...
7 years, 5 months ago (2013-06-27 16:54:08 UTC) #5
gab
Looks good, comments below. Cheers! Gab https://codereview.chromium.org/18064002/diff/40001/chrome/browser/importer/external_process_importer_bridge.cc File chrome/browser/importer/external_process_importer_bridge.cc (right): https://codereview.chromium.org/18064002/diff/40001/chrome/browser/importer/external_process_importer_bridge.cc#newcode129 chrome/browser/importer/external_process_importer_bridge.cc:129: const std::vector<importer::URLKeywordInfo>& url_keywords, ...
7 years, 5 months ago (2013-06-27 22:07:29 UTC) #6
ananta
https://codereview.chromium.org/18064002/diff/40001/chrome/browser/importer/external_process_importer_bridge.cc File chrome/browser/importer/external_process_importer_bridge.cc (right): https://codereview.chromium.org/18064002/diff/40001/chrome/browser/importer/external_process_importer_bridge.cc#newcode129 chrome/browser/importer/external_process_importer_bridge.cc:129: const std::vector<importer::URLKeywordInfo>& url_keywords, On 2013/06/27 22:07:29, gab wrote: > ...
7 years, 5 months ago (2013-06-27 22:29:55 UTC) #7
gab
As discussed offline, I don't like the potential effect on stability this could have, the ...
7 years, 5 months ago (2013-06-27 23:12:44 UTC) #8
ananta
Will watch the crashes once this lands. We can revisit if this causes a spike. ...
7 years, 5 months ago (2013-06-27 23:26:09 UTC) #9
scottmg
On 2013/06/27 23:12:44, gab wrote: > As discussed offline, I don't like the potential effect ...
7 years, 5 months ago (2013-06-27 23:44:06 UTC) #10
ananta
On 2013/06/27 23:44:06, scottmg wrote: > On 2013/06/27 23:12:44, gab wrote: > > As discussed ...
7 years, 5 months ago (2013-06-27 23:53:52 UTC) #11
gab
lgtm w/ nit+question below. Thanks! Gab https://codereview.chromium.org/18064002/diff/38003/chrome/browser/importer/in_process_importer_bridge.cc File chrome/browser/importer/in_process_importer_bridge.cc (right): https://codereview.chromium.org/18064002/diff/38003/chrome/browser/importer/in_process_importer_bridge.cc#newcode71 chrome/browser/importer/in_process_importer_bridge.cc:71: data.SetKeyword(keyword); nit: Remove ...
7 years, 5 months ago (2013-06-28 00:28:44 UTC) #12
ananta
https://codereview.chromium.org/18064002/diff/38003/chrome/browser/importer/in_process_importer_bridge.cc File chrome/browser/importer/in_process_importer_bridge.cc (right): https://codereview.chromium.org/18064002/diff/38003/chrome/browser/importer/in_process_importer_bridge.cc#newcode71 chrome/browser/importer/in_process_importer_bridge.cc:71: data.SetKeyword(keyword); On 2013/06/28 00:28:45, gab wrote: > nit: Remove ...
7 years, 5 months ago (2013-06-28 01:03:29 UTC) #13
gab
https://codereview.chromium.org/18064002/diff/38003/chrome/browser/importer/in_process_importer_bridge.cc File chrome/browser/importer/in_process_importer_bridge.cc (right): https://codereview.chromium.org/18064002/diff/38003/chrome/browser/importer/in_process_importer_bridge.cc#newcode72 chrome/browser/importer/in_process_importer_bridge.cc:72: data.SetURL(TemplateURLRef::DisplayURLToURLRef(UTF8ToUTF16(url.spec()))); On 2013/06/28 01:03:29, ananta wrote: > On 2013/06/28 ...
7 years, 5 months ago (2013-06-28 01:55:07 UTC) #14
ananta
7 years, 5 months ago (2013-06-28 02:19:47 UTC) #15
Message was sent while issue was closed.
Committed patchset #10 manually as r209072 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698