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

Issue 10829435: contacts: Strip Unicode byte order marks from strings. (Closed)

Created:
8 years, 4 months ago by Daniel Erat
Modified:
8 years, 4 months ago
Reviewers:
satorux1
CC:
chromium-reviews, nkostylev+watch_chromium.org, derat+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

contacts: Strip Unicode byte order marks from strings. The feeds that we get from the Contacts API are UTF-8, but they're littered with BOM characters. This change makes GDataContactsService strip out these characters when initializing contacts::Contact objects. I'm also merging a few related browser tests together so that the new test that I'm adding won't increase the total running time. BUG=128805 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152389

Patch Set 1 #

Total comments: 2

Patch Set 2 : use escaped bytes instead of utf-8 in test code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -73 lines) Patch
M chrome/browser/chromeos/contacts/contact.proto View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_contacts_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_contacts_service.cc View 8 chunks +37 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc View 1 2 chunks +25 lines, -10 lines 0 comments Download
A + chrome/test/data/chromeos/gdata/contacts/feed_unicode.json View 2 chunks +39 lines, -49 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
8 years, 4 months ago (2012-08-20 18:24:41 UTC) #1
satorux1
LGTM with a request: https://chromiumcodereview.appspot.com/10829435/diff/1/chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc File chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/10829435/diff/1/chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc#newcode298 chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc:298: false, "安藤 忠雄", "忠雄", "", ...
8 years, 4 months ago (2012-08-20 18:37:58 UTC) #2
Daniel Erat
https://chromiumcodereview.appspot.com/10829435/diff/1/chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc File chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/10829435/diff/1/chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc#newcode298 chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc:298: false, "安藤 忠雄", "忠雄", "", "安藤", "", "", On ...
8 years, 4 months ago (2012-08-20 19:09:43 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10829435/6001
8 years, 4 months ago (2012-08-20 19:30:49 UTC) #4
commit-bot: I haz the power
8 years, 4 months ago (2012-08-20 21:00:48 UTC) #5
Change committed as 152389

Powered by Google App Engine
This is Rietveld 408576698