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

Issue 4281: Fixes bug in importer where we could set the default search provider... (Closed)

Created:
12 years, 3 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fixes bug in importer where we could set the default search provider to one that doesn't support replacement. Also changed uniquing to consider invalid OSDD urls. Need this to pick up Windows Live Search. I also changed the ff importer to return out early on if it couldn't find the value for the search provider. I encountered this do to hitting a NOTREACHED. BUG=1507 TEST=In IE set your default search to Live Search. Import from IE and make sure Chrome sets the default search to Live Search. Also make sure this didn't break keyword importing. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=2630

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -14 lines) Patch
M chrome/browser/importer/firefox_importer_utils.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/importer/importer.cc View 1 2 4 chunks +42 lines, -14 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
sky
12 years, 3 months ago (2008-09-25 19:58:50 UTC) #1
Peter Kasting
http://codereview.chromium.org/4281/diff/1/3 File chrome/browser/importer/firefox_importer_utils.cc (right): http://codereview.chromium.org/4281/diff/1/3#newcode334 Line 334: // TODO: should fallback to 'browser.search.defaultengine' if selectedEngine ...
12 years, 3 months ago (2008-09-25 20:54:44 UTC) #2
sky
http://codereview.chromium.org/4281/diff/1/3 File chrome/browser/importer/firefox_importer_utils.cc (right): http://codereview.chromium.org/4281/diff/1/3#newcode334 Line 334: // TODO: should fallback to 'browser.search.defaultengine' if selectedEngine ...
12 years, 3 months ago (2008-09-25 23:08:05 UTC) #3
Peter Kasting
http://codereview.chromium.org/4281/diff/1/3 File chrome/browser/importer/firefox_importer_utils.cc (right): http://codereview.chromium.org/4281/diff/1/3#newcode334 Line 334: // TODO: should fallback to 'browser.search.defaultengine' if selectedEngine ...
12 years, 3 months ago (2008-09-25 23:29:59 UTC) #4
Peter Kasting
12 years, 3 months ago (2008-09-25 23:44:19 UTC) #5
LGTM

http://codereview.chromium.org/4281/diff/10/210
File chrome/browser/importer/importer.cc (right):

http://codereview.chromium.org/4281/diff/10/210#newcode161
Line 161: // the TemplateURL is invalid.
Thanks for this comment, it helps.

It might be even clearer if you moved it to the caller location and changed it
to something like: "Set the default engine based on even invalid URLs, if they
match a valid URL we already know.  For example, IE's Live Search URL contains
'{Language}', which is not a valid OSDD parameter and thus makes the TemplateURL
invalid, but its host+path portion still matches our Live Search prepopulate
data entry."

Up to you.

Powered by Google App Engine
This is Rietveld 408576698