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

Issue 6248017: Do not use local override for language settings: always sync. (Closed)

Created:
9 years, 11 months ago by Denis Lagno
Modified:
9 years, 6 months ago
Reviewers:
Nikita (slow)
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, Paweł Hajdan Jr., ncarter (slow), idana, Raghu Simha, tim (not reviewing)
Visibility:
Public.

Description

Do not use local override for language settings: always store it into synchronized preference. BUG=chromium-os:11147 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72633

Patch Set 1 : tweak #

Patch Set 2 : rebase #

Total comments: 13

Patch Set 3 : tidy up #

Total comments: 3

Patch Set 4 : logic concentrated into Profile::ChangeAppLocale #

Patch Set 5 : touch #

Patch Set 6 : simplify #

Patch Set 7 : bs removed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -106 lines) Patch
M chrome/browser/chromeos/locale_change_guard.cc View 1 2 3 5 chunks +10 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 3 chunks +12 lines, -44 lines 0 comments Download
M chrome/browser/dom_ui/options/language_options_handler.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 1 chunk +14 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 1 chunk +65 lines, -18 lines 0 comments Download
M chrome/browser/sync/glue/preference_model_associator.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 1 chunk +27 lines, -7 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Denis Lagno
please take a look
9 years, 11 months ago (2011-01-25 14:16:15 UTC) #1
Nikita (slow)
http://codereview.chromium.org/6248017/diff/5001/chrome/browser/chromeos/locale_change_guard.cc File chrome/browser/chromeos/locale_change_guard.cc (right): http://codereview.chromium.org/6248017/diff/5001/chrome/browser/chromeos/locale_change_guard.cc#newcode69 chrome/browser/chromeos/locale_change_guard.cc:69: tab_contents_->profile()->ChangeApplicationLocale(from_locale_); In this case should we clear LocaleBackup setting? ...
9 years, 11 months ago (2011-01-25 14:35:31 UTC) #2
Nikita (slow)
http://codereview.chromium.org/6248017/diff/5001/chrome/common/pref_names.h File chrome/common/pref_names.h (right): http://codereview.chromium.org/6248017/diff/5001/chrome/common/pref_names.h#newcode29 chrome/common/pref_names.h:29: extern const char kApplicationLocaleBackup[]; Is it possible to create ...
9 years, 11 months ago (2011-01-25 14:38:28 UTC) #3
Denis Lagno
http://codereview.chromium.org/6248017/diff/5001/chrome/browser/chromeos/locale_change_guard.cc File chrome/browser/chromeos/locale_change_guard.cc (right): http://codereview.chromium.org/6248017/diff/5001/chrome/browser/chromeos/locale_change_guard.cc#newcode69 chrome/browser/chromeos/locale_change_guard.cc:69: tab_contents_->profile()->ChangeApplicationLocale(from_locale_); On 2011/01/25 14:35:31, Nikita Kostylev wrote: > In ...
9 years, 11 months ago (2011-01-25 15:46:43 UTC) #4
Nikita (slow)
http://codereview.chromium.org/6248017/diff/5001/chrome/common/pref_names.h File chrome/common/pref_names.h (right): http://codereview.chromium.org/6248017/diff/5001/chrome/common/pref_names.h#newcode24 chrome/common/pref_names.h:24: // For OS_CHROMEOS we maintain kApplicationLocale property in both ...
9 years, 11 months ago (2011-01-25 16:04:44 UTC) #5
Nikita (slow)
LGTM As discussed, Accepted preference is needed to prevent multiple notifications on each login in ...
9 years, 11 months ago (2011-01-25 16:32:04 UTC) #6
Denis Lagno
9 years, 11 months ago (2011-01-26 10:31:40 UTC) #7
http://codereview.chromium.org/6248017/diff/19001/chrome/browser/profiles/pro...
File chrome/browser/profiles/profile.h (right):

http://codereview.chromium.org/6248017/diff/19001/chrome/browser/profiles/pro...
chrome/browser/profiles/profile.h:488: // Changes application locale.
On 2011/01/25 16:04:44, Nikita Kostylev wrote:
> Please add cases when it's called. I was confused that method is called on
every
> locale change.

reasonable concern.
I've made this method to be called on every language change for a profile.

Powered by Google App Engine
This is Rietveld 408576698