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

Issue 3221007: Fix a couple of firefox search engine import bugs. (Closed)

Created:
10 years, 3 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Fix a couple of firefox search engine import bugs. 1) on ubuntu, firefox3 search engines are stored in a slightly different place. See bug 53899 for more info. 2) fix parse error in ReadPrefJsValue. Firefox pref values may contain parentheses, e.g. "Wikipedia (en)" BUG=53899 TEST=create a new firefox profile and set it as the default profile, and set firefox3 as the default browser. Launch chrome with --user-data-dir=/tmp/foo. The default set of firefox search engines should be silently imported. (Also, after I write a patch to do so, the first run ballot box should show the default ffox search engine along side the 3 defaults, if it is not one of the three defaults). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58258

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 9

Patch Set 3 : added test, TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -33 lines) Patch
M chrome/browser/importer/firefox3_importer.h View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/importer/firefox3_importer.cc View 1 2 4 chunks +28 lines, -4 lines 0 comments Download
M chrome/browser/importer/firefox_importer_utils.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/importer/firefox_importer_utils.cc View 1 2 4 chunks +36 lines, -27 lines 0 comments Download
A chrome/browser/importer/firefox_importer_utils_unittest.cc View 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Evan Stade
10 years, 3 months ago (2010-08-31 01:12:12 UTC) #1
Evan Martin
Code LGTM, one concern that might warrant more testing http://codereview.chromium.org/3221007/diff/2001/3001 File chrome/browser/importer/firefox3_importer.cc (right): http://codereview.chromium.org/3221007/diff/2001/3001#newcode398 chrome/browser/importer/firefox3_importer.cc:398: ...
10 years, 3 months ago (2010-08-31 16:26:01 UTC) #2
Evan Martin
http://codereview.chromium.org/3221007/diff/2001/3003 File chrome/browser/importer/firefox_importer_utils.cc (right): http://codereview.chromium.org/3221007/diff/2001/3003#newcode298 chrome/browser/importer/firefox_importer_utils.cc:298: } Oops, skipped over this file in my review. ...
10 years, 3 months ago (2010-08-31 16:27:01 UTC) #3
Evan Stade
+jshin (probably has a better answer than me. Jungshik: Evan's question is in his first ...
10 years, 3 months ago (2010-08-31 19:59:47 UTC) #4
Evan Martin
http://codereview.chromium.org/3221007/diff/2001/3003 File chrome/browser/importer/firefox_importer_utils.cc (right): http://codereview.chromium.org/3221007/diff/2001/3003#newcode296 chrome/browser/importer/firefox_importer_utils.cc:296: stop = content.find("\n", start + 1); Will this do ...
10 years, 3 months ago (2010-08-31 21:31:59 UTC) #5
Evan Stade
http://codereview.chromium.org/3221007/diff/2001/3003 File chrome/browser/importer/firefox_importer_utils.cc (right): http://codereview.chromium.org/3221007/diff/2001/3003#newcode296 chrome/browser/importer/firefox_importer_utils.cc:296: stop = content.find("\n", start + 1); On 2010/08/31 21:31:59, ...
10 years, 3 months ago (2010-08-31 22:06:32 UTC) #6
jungshik at Google
Evan, does Firefox3 on Ubuntu use 'he-IL', 'fr-FR', 'sv-SE' instead of 'he', 'fr', 'sv'? One ...
10 years, 3 months ago (2010-08-31 22:18:48 UTC) #7
Evan Martin
+fta, who might know the answer to jshin's question
10 years, 3 months ago (2010-08-31 22:20:54 UTC) #8
Evan Stade
test added http://codereview.chromium.org/3221007/diff/2001/3001 File chrome/browser/importer/firefox3_importer.cc (right): http://codereview.chromium.org/3221007/diff/2001/3001#newcode398 chrome/browser/importer/firefox3_importer.cc:398: FilePath locale_app_path = app_path.AppendASCII(locale_); On 2010/08/31 22:18:49, ...
10 years, 3 months ago (2010-08-31 23:01:41 UTC) #9
Evan Martin
LGTM
10 years, 3 months ago (2010-08-31 23:31:01 UTC) #10
micah.gersten
On 2010/08/31 22:18:48, Jungshik Shin wrote: > Evan, does Firefox3 on Ubuntu use 'he-IL', 'fr-FR', ...
10 years, 3 months ago (2010-09-01 07:00:59 UTC) #11
jungshik at Google
10 years, 3 months ago (2010-09-01 18:15:28 UTC) #12
On 2010/09/01 07:00:59, micah.gersten wrote:
> On 2010/08/31 22:18:48, Jungshik Shin wrote:
> > Evan, does Firefox3 on Ubuntu use 'he-IL', 'fr-FR', 'sv-SE' instead of 'he',
> > 'fr', 'sv'?  
> > 
> > One more question: does it also have 'en-Foo' other than 'en-US' and 'en-GB'
> and
> > 'fr-CA', 'fr-CH', 'de-CH', 'ar-Foo', 'es-Foo'  and so forth?
> > 
> > http://codereview.chromium.org/3221007/diff/2001/3001
> > File chrome/browser/importer/firefox3_importer.cc (right):
> > 
> > http://codereview.chromium.org/3221007/diff/2001/3001#newcode398
> > chrome/browser/importer/firefox3_importer.cc:398: FilePath locale_app_path =
> > app_path.AppendASCII(locale_);
> > On 2010/08/31 16:26:02, Evan Martin wrote:
> > > Do we need to worry about differences in how locales are named?  I'm
> > especially
> > > concerned with the difference between "en_US" and "en-US", but I think
> there's
> > > also a corner case in that different apps represent Hebrew in different
ways
> > (HE
> > > vs IW or something).
> > 
> > Chrome uses the standard 'he' internally and Firefox does, too. ('iw' got
> > obsoleted so long ago that Firefox couldn't possibly use it. Why Google use
> it?
> > Don't ask me :-)) So, Hebrew is not a concern except that Firefox may use
> > 'he-IL' instead of just 'he'. 
> > 
> > However, we have to go through the list of Firefox locale codes (Firefox may
> use
> > 'hi-IN' instead of 'hi' for Hindi, for instance). 
> > 
> > If that's indeed the case, we have to 'expand' Chrome's UI locale name to
> > include the region where a given language is most widely spoken (there's an
> ICU
> > API for that). For now, just adding a TODO comment about the possibility
would
> > suffice.
> 
> There can be multiple locales per language and Firefox and Ubuntu take this
into
> account.

Thta's what I suspected. Anyway, for now, the CL LGTM.

Powered by Google App Engine
This is Rietveld 408576698