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

Issue 1130183004: [iOS] Expose TemplateURLPrepopulateData::GetCurrentCountryID() (Closed)

Created:
5 years, 7 months ago by sdefresne
Modified:
5 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[iOS] Expose TemplateURLPrepopulateData::GetCurrentCountryID() Expose TemplateURLPrepopulateData::GetCurrentCountryID() to detect that the user changed the device region in order to update the list of search engine on iOS. Note that when a region change is detected we remove all default search engines except the one selected by the user and then insert all the new engines. This is possible because user cannot customize search engines, only select one of the default engines. BUG=None Committed: https://crrev.com/71c91039c5fb1a12f2f6920c1a63c0ae48a97c10 Cr-Commit-Position: refs/heads/master@{#330716}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address pkasting comments #

Total comments: 4

Patch Set 3 : Address second round of comments #

Total comments: 4

Patch Set 4 : Second round of comments #

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -66 lines) Patch
M components/search_engines/template_url_prepopulate_data.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M components/search_engines/template_url_prepopulate_data.cc View 1 2 3 4 4 chunks +68 lines, -66 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
sdefresne
Please take a look.
5 years, 7 months ago (2015-05-12 15:52:16 UTC) #2
Peter Kasting
https://codereview.chromium.org/1130183004/diff/1/components/search_engines/template_url_prepopulate_data.cc File components/search_engines/template_url_prepopulate_data.cc (right): https://codereview.chromium.org/1130183004/diff/1/components/search_engines/template_url_prepopulate_data.cc#newcode1283 components/search_engines/template_url_prepopulate_data.cc:1283: return GetCountryIDFromPrefs(nullptr); This infinite loops, doesn't it? The first ...
5 years, 7 months ago (2015-05-12 18:49:14 UTC) #3
sdefresne
Thank you for the review. Please take another look. https://codereview.chromium.org/1130183004/diff/1/components/search_engines/template_url_prepopulate_data.cc File components/search_engines/template_url_prepopulate_data.cc (right): https://codereview.chromium.org/1130183004/diff/1/components/search_engines/template_url_prepopulate_data.cc#newcode1283 components/search_engines/template_url_prepopulate_data.cc:1283: ...
5 years, 7 months ago (2015-05-13 12:47:12 UTC) #4
Peter Kasting
https://codereview.chromium.org/1130183004/diff/20001/components/search_engines/template_url_prepopulate_data.cc File components/search_engines/template_url_prepopulate_data.cc (right): https://codereview.chromium.org/1130183004/diff/20001/components/search_engines/template_url_prepopulate_data.cc#newcode1285 components/search_engines/template_url_prepopulate_data.cc:1285: return GetCurrentCountryID(); What implementation does this actually use? OS_POSIX? ...
5 years, 7 months ago (2015-05-13 23:12:59 UTC) #5
sdefresne
PTAL https://codereview.chromium.org/1130183004/diff/20001/components/search_engines/template_url_prepopulate_data.cc File components/search_engines/template_url_prepopulate_data.cc (right): https://codereview.chromium.org/1130183004/diff/20001/components/search_engines/template_url_prepopulate_data.cc#newcode1285 components/search_engines/template_url_prepopulate_data.cc:1285: return GetCurrentCountryID(); On 2015/05/13 23:12:59, Peter Kasting wrote: ...
5 years, 7 months ago (2015-05-18 09:47:19 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/1130183004/diff/40001/components/search_engines/template_url_prepopulate_data.cc File components/search_engines/template_url_prepopulate_data.cc (right): https://codereview.chromium.org/1130183004/diff/40001/components/search_engines/template_url_prepopulate_data.cc#newcode1067 components/search_engines/template_url_prepopulate_data.cc:1067: int GeoIDToCountryID(GEOID geo_id) { Nit: Leave this function ...
5 years, 7 months ago (2015-05-18 18:31:34 UTC) #7
sdefresne
Thank you for the review. I had to forward-declare the function on all OS because ...
5 years, 7 months ago (2015-05-19 09:04:22 UTC) #8
Peter Kasting
I would make the declaration in the header un-#if'd but let the comment there say ...
5 years, 7 months ago (2015-05-19 19:50:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130183004/80001
5 years, 7 months ago (2015-05-20 08:20:57 UTC) #12
sdefresne
On 2015/05/19 19:50:26, Peter Kasting wrote: > I would make the declaration in the header ...
5 years, 7 months ago (2015-05-20 08:31:47 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-20 09:14:49 UTC) #14
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 09:15:36 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/71c91039c5fb1a12f2f6920c1a63c0ae48a97c10
Cr-Commit-Position: refs/heads/master@{#330716}

Powered by Google App Engine
This is Rietveld 408576698