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

Issue 247223003: Parsed search.json for importing search engine settings from FireFox. (Closed)

Created:
6 years, 8 months ago by Tapu Ghose
Modified:
6 years, 5 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Parsed search.json for importing search engine settings from FireFox. Since FireFox 3.5, search.json (instead of search.sqlite) is used for storing search engines data. BUG=329175 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280870

Patch Set 1 #

Total comments: 1

Patch Set 2 : synced branch #

Total comments: 7

Patch Set 3 : Added test coverage and addressed feedback #

Total comments: 8

Patch Set 4 : Restored kFirefoxKeywords and updated logic to import installed search engines along with default o… #

Total comments: 7

Patch Set 5 : wrapped up line to 80 columns #

Patch Set 6 : Added XML files for search engines in test directory #

Patch Set 7 : re-uploading. creativecommons.xml may not passed through during previous upload. #

Patch Set 8 : Patch rebased and added test data for Firefox30Importer test. #

Patch Set 9 : README under firefox3_profile directory might have not been uploaded properly in previous commit. #

Patch Set 10 : Removed unwanted dot(.) from relative path in search.json. #

Total comments: 1

Patch Set 11 : Addressed text alignments #

Total comments: 8

Patch Set 12 : Made use of [app] and [profile] paths for firefox importer browser test #

Patch Set 13 : re-uploading. XMLs for custom search engines have not uploaded properly during previous upload #

Total comments: 9

Patch Set 14 : Removed |import_search_engines_| flag such that search engines import test is always conducted. #

Total comments: 4

Patch Set 15 : Rebased. #

Patch Set 16 : Instead of relative path, [app] and [profile] are used for |filePath| attribute in search.json. #

Patch Set 17 : Addressed overlooked comments on Patch Set 14. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -47 lines) Patch
M chrome/browser/importer/firefox_importer_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +46 lines, -44 lines 0 comments Download
A chrome/test/data/firefox_profile/README View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 0 comments Download
A + chrome/test/data/firefox_profile/prefs.js View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/firefox_profile/search.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +120 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/custom/flickr-tags.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/custom/imdb.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/custom/webster.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/default/amazondotcom.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/default/answers.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/default/creativecommons.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/default/eBay.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/default/google.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/default/wikipedia.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/firefox_searchplugins/default/yahoo.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/utility/importer/firefox_importer.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/utility/importer/firefox_importer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +90 lines, -4 lines 0 comments Download

Messages

Total messages: 69 (0 generated)
Tapu Ghose
Hello, I have submitted this patch to fix Issue 329175. For your reference, I have ...
6 years, 8 months ago (2014-04-22 23:25:03 UTC) #1
tfarina
https://codereview.chromium.org/247223003/diff/1/chrome/utility/importer/firefox_importer.cc File chrome/utility/importer/firefox_importer.cc (right): https://codereview.chromium.org/247223003/diff/1/chrome/utility/importer/firefox_importer.cc#newcode115 chrome/utility/importer/firefox_importer.cc:115: ImportHomepage(); // Doesn't have a UI item. I don't ...
6 years, 8 months ago (2014-04-22 23:49:11 UTC) #2
Tapu Ghose
I think something went wrong. I have not touched anything other than "GetSearchEnginesXMLData". I literally ...
6 years, 8 months ago (2014-04-23 00:04:00 UTC) #3
Tapu Ghose
The CQ bit was checked by ghose.tapu@gmail.com
6 years, 8 months ago (2014-04-23 02:13:49 UTC) #4
Tapu Ghose
The CQ bit was unchecked by ghose.tapu@gmail.com
6 years, 8 months ago (2014-04-23 02:13:49 UTC) #5
Tapu Ghose
PTAL
6 years, 8 months ago (2014-04-23 03:06:13 UTC) #6
tfarina
I'm adding Gabriel for review, just in case. And copying Ilya, in case he wants ...
6 years, 8 months ago (2014-04-23 03:14:52 UTC) #7
Tapu Ghose
Thanks Thiago. On Tue, Apr 22, 2014 at 11:14 PM, <tfarina@chromium.org> wrote: > I'm adding ...
6 years, 8 months ago (2014-04-23 03:16:02 UTC) #8
Ilya Sherman
Thanks for working on this! In addition to addressing my inline comments, please add some ...
6 years, 8 months ago (2014-04-23 04:56:01 UTC) #9
Tapu Ghose
Hello Ilya, Thank you very much for reviewing my codes and providing feedback. I tried ...
6 years, 7 months ago (2014-05-01 03:23:17 UTC) #10
Ilya Sherman
Thanks! This is getting pretty close -- just a few issues left to hammer out ...
6 years, 7 months ago (2014-05-01 21:37:02 UTC) #11
Tapu Ghose
Hi Ilya, Thanks for the feedback. I definitely agree that we should play with original ...
6 years, 7 months ago (2014-05-01 21:52:58 UTC) #12
Tapu Ghose
PTAL
6 years, 7 months ago (2014-05-03 05:10:09 UTC) #13
Ilya Sherman
Thanks! I have a few more nits for you, and I'm going to try running ...
6 years, 7 months ago (2014-05-06 04:21:48 UTC) #14
Tapu Ghose
PTAL https://codereview.chromium.org/247223003/diff/60001/chrome/test/data/firefox_profile/README File chrome/test/data/firefox_profile/README (right): https://codereview.chromium.org/247223003/diff/60001/chrome/test/data/firefox_profile/README#newcode10 chrome/test/data/firefox_profile/README:10: Moreover, each list of |engines| is updated to ...
6 years, 7 months ago (2014-05-06 05:18:52 UTC) #15
Ilya Sherman
https://codereview.chromium.org/247223003/diff/60001/chrome/test/data/firefox_profile/README File chrome/test/data/firefox_profile/README (right): https://codereview.chromium.org/247223003/diff/60001/chrome/test/data/firefox_profile/README#newcode10 chrome/test/data/firefox_profile/README:10: Moreover, each list of |engines| is updated to respect ...
6 years, 7 months ago (2014-05-06 19:00:11 UTC) #16
Tapu Ghose
On 2014/05/06 19:00:11, Ilya Sherman wrote: > https://codereview.chromium.org/247223003/diff/60001/chrome/test/data/firefox_profile/README > File chrome/test/data/firefox_profile/README (right): > > https://codereview.chromium.org/247223003/diff/60001/chrome/test/data/firefox_profile/README#newcode10 ...
6 years, 7 months ago (2014-05-08 04:05:09 UTC) #17
Tapu Ghose
PTAL
6 years, 7 months ago (2014-05-08 04:05:43 UTC) #18
Ilya Sherman
On 2014/05/08 04:05:43, Tapu wrote: > PTAL Hi, apologies for being slow to respond. I ...
6 years, 7 months ago (2014-05-09 23:54:45 UTC) #19
Ilya Sherman
Thanks for uploading the XML files :) I'm going to try running this past the ...
6 years, 7 months ago (2014-05-13 03:23:10 UTC) #20
Ilya Sherman
On 2014/05/13 03:23:10, Ilya Sherman wrote: > Thanks for uploading the XML files :) > ...
6 years, 7 months ago (2014-05-13 03:23:47 UTC) #21
Tapu Ghose
On 2014/05/13 03:23:47, Ilya Sherman wrote: > On 2014/05/13 03:23:10, Ilya Sherman wrote: > > ...
6 years, 7 months ago (2014-05-13 05:10:27 UTC) #22
Tapu Ghose
PTAL
6 years, 7 months ago (2014-05-13 05:10:42 UTC) #23
Ilya Sherman
On 2014/05/13 05:10:27, Tapu wrote: > On 2014/05/13 03:23:47, Ilya Sherman wrote: > > On ...
6 years, 7 months ago (2014-05-13 18:43:17 UTC) #24
Tapu Ghose
Hello Ilya, Thank you for putting your valuable time behind reviewing. Please note that prior ...
6 years, 7 months ago (2014-05-13 19:41:04 UTC) #25
Ilya Sherman
It looks like the try runs are failing because your patch needs to be rebased, ...
6 years, 7 months ago (2014-05-13 21:08:07 UTC) #26
Tapu Ghose
On 2014/05/13 21:08:07, Ilya Sherman wrote: > It looks like the try runs are failing ...
6 years, 7 months ago (2014-05-17 03:53:52 UTC) #27
Tapu Ghose
PTAL
6 years, 7 months ago (2014-05-17 03:54:28 UTC) #28
Tapu Ghose
PTAL
6 years, 7 months ago (2014-05-17 04:06:54 UTC) #29
Tapu Ghose
Removed unwanted dot (.) from relative path in search.json test data. I ran the browser ...
6 years, 7 months ago (2014-05-17 17:45:00 UTC) #30
Ilya Sherman
Thanks! I've launched some fresh try jobs on all three platforms. https://codereview.chromium.org/247223003/diff/170001/chrome/browser/importer/firefox_importer_browsertest.cc File chrome/browser/importer/firefox_importer_browsertest.cc (right): ...
6 years, 6 months ago (2014-05-29 07:21:58 UTC) #31
Ilya Sherman
On 2014/05/29 07:21:58, Ilya Sherman wrote: > Thanks! I've launched some fresh try jobs on ...
6 years, 6 months ago (2014-05-29 20:31:41 UTC) #32
Tapu Ghose
Hi Ilya, Sorry for not getting in touch earlier. I was away for few days. ...
6 years, 6 months ago (2014-06-01 02:36:51 UTC) #33
Ilya Sherman
On 2014/06/01 02:36:51, Tapu wrote: > Hi Ilya, > > Sorry for not getting in ...
6 years, 6 months ago (2014-06-04 00:36:13 UTC) #34
Tapu Ghose
Thanks Ilya. I appreciate your patience and guidance. Cheers, ~Tapu. On Tue, Jun 3, 2014 ...
6 years, 6 months ago (2014-06-04 00:37:48 UTC) #35
Ilya Sherman
Hi Tapu, I tried to patch in your changes, but it looks like our system ...
6 years, 6 months ago (2014-06-05 06:44:51 UTC) #36
Tapu Ghose
Hello Ilya, Thank you for providing your valuable time behind tracing the issue. Please find ...
6 years, 6 months ago (2014-06-05 11:39:28 UTC) #37
Ilya Sherman
Hi Tapu, I patched in your changes locally, but I wasn't able to get the ...
6 years, 6 months ago (2014-06-06 04:15:42 UTC) #38
Tapu Ghose
Hi Ilya, I have addressed your feedback. I also attached the update search.sqlite (binary file) ...
6 years, 6 months ago (2014-06-15 04:18:57 UTC) #39
Tapu Ghose
PTAL https://codereview.chromium.org/247223003/diff/190001/chrome/browser/importer/firefox_importer_browsertest.cc File chrome/browser/importer/firefox_importer_browsertest.cc (right): https://codereview.chromium.org/247223003/diff/190001/chrome/browser/importer/firefox_importer_browsertest.cc#newcode245 chrome/browser/importer/firefox_importer_browsertest.cc:245: ASSERT_TRUE(base::CopyDirectory(data_path, search_engine_path, false)); On 2014/06/06 04:15:42, Ilya Sherman ...
6 years, 6 months ago (2014-06-15 04:19:49 UTC) #40
Ilya Sherman
Thanks, Tapu! The tests now pass on my local machine (except that they sometimes time ...
6 years, 6 months ago (2014-06-17 23:26:42 UTC) #41
Tapu Ghose
PTAL https://codereview.chromium.org/247223003/diff/220001/chrome/browser/importer/firefox_importer_browsertest.cc File chrome/browser/importer/firefox_importer_browsertest.cc (right): https://codereview.chromium.org/247223003/diff/220001/chrome/browser/importer/firefox_importer_browsertest.cc#newcode204 chrome/browser/importer/firefox_importer_browsertest.cc:204: bool import_search_engines_; On 2014/06/17 23:26:42, Ilya Sherman wrote: ...
6 years, 6 months ago (2014-06-18 12:16:42 UTC) #42
Tapu Ghose
Hi Ilya, //chrome/test/data/firefox_profile holds 6 binary files (*.db, *.sqlite). I was wondering if they are ...
6 years, 6 months ago (2014-06-18 12:53:51 UTC) #43
Ilya Sherman
On 2014/06/18 12:53:51, Tapu wrote: > //chrome/test/data/firefox_profile holds 6 binary files (*.db, *.sqlite). I > ...
6 years, 6 months ago (2014-06-19 00:49:16 UTC) #44
Tapu Ghose
Hi Ilya, Please find the attached binary files. Cheers, ~Tapu. On Wed, Jun 18, 2014 ...
6 years, 6 months ago (2014-06-19 01:20:31 UTC) #45
Ilya Sherman
Thanks, Tapu. I've landed the binary files as http://src.chromium.org/viewvc/chrome?revision=278513&view=revision
6 years, 6 months ago (2014-06-19 22:58:19 UTC) #46
Tapu Ghose
Thanks Ilya. I am looking forward to see how the test goes now. Cheers, ~Tapu. ...
6 years, 6 months ago (2014-06-21 01:28:44 UTC) #47
Ilya Sherman
I've kicked off another set of try jobs, but I think there's a good chance ...
6 years, 6 months ago (2014-06-24 07:02:05 UTC) #48
Tapu Ghose
Hello Ilya, I will rebase and upload a new patch this evening. Cheers, ~Tapu. On ...
6 years, 6 months ago (2014-06-24 12:25:41 UTC) #49
Tapu Ghose
On 2014/06/24 12:25:41, Tapu wrote: > Hello Ilya, > > I will rebase and upload ...
6 years, 6 months ago (2014-06-26 04:40:46 UTC) #50
Ilya Sherman
Thanks, Tapu. I've kicked off another set of try jobs.
6 years, 5 months ago (2014-06-27 06:01:39 UTC) #51
Tapu Ghose
Hi Illya, Looks like try jobs failed for firefox importer test :( The tests pass ...
6 years, 5 months ago (2014-06-27 21:45:05 UTC) #52
Ilya Sherman
On 2014/06/27 21:45:05, Tapu wrote: > Hi Illya, > > Looks like try jobs failed ...
6 years, 5 months ago (2014-06-27 22:13:54 UTC) #53
Tapu Ghose
Yes, I am developing on linux. In the search.json (//src/chrome/test/data/firefox_profile/search.json) I have used relative path ...
6 years, 5 months ago (2014-06-27 22:46:10 UTC) #54
Tapu Ghose
Hi Ilya, Since tests are passing in my linux machine but failing in try bots, ...
6 years, 5 months ago (2014-06-28 01:42:35 UTC) #55
Tapu Ghose
PTAL
6 years, 5 months ago (2014-06-28 01:43:28 UTC) #56
Ilya Sherman
Hooray, the try jobs are passing with your latest changes! Please address the outstanding comments ...
6 years, 5 months ago (2014-07-01 04:24:18 UTC) #57
Tapu Ghose
On 2014/07/01 04:24:18, Ilya Sherman wrote: > Hooray, the try jobs are passing with your ...
6 years, 5 months ago (2014-07-01 12:36:38 UTC) #58
Ilya Sherman
LGTM. Thanks very much for your patience and persistence working on this issue, Tapu!
6 years, 5 months ago (2014-07-01 17:12:01 UTC) #59
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 5 months ago (2014-07-01 17:12:09 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ghose.tapu@gmail.com/247223003/300001
6 years, 5 months ago (2014-07-01 17:13:24 UTC) #61
Tapu Ghose
Thanks Ilya. I appreciate all your co-operations and guidance through out this issue. On Tue, ...
6 years, 5 months ago (2014-07-01 17:15:55 UTC) #62
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-01 19:33:23 UTC) #63
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-01 19:36:53 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/77433)
6 years, 5 months ago (2014-07-01 19:36:55 UTC) #65
Ilya Sherman
Committing with NOTRY=true because the presubmit check is incorrectly triggering for test data files.
6 years, 5 months ago (2014-07-01 19:40:14 UTC) #66
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 5 months ago (2014-07-01 19:40:21 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ghose.tapu@gmail.com/247223003/300001
6 years, 5 months ago (2014-07-01 19:41:44 UTC) #68
commit-bot: I haz the power
6 years, 5 months ago (2014-07-01 19:47:40 UTC) #69
Message was sent while issue was closed.
Change committed as 280870

Powered by Google App Engine
This is Rietveld 408576698