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

Issue 6249009: Cleanup of r71320 commit. (Closed)

Created:
9 years, 11 months ago by Denis Lagno
Modified:
9 years, 6 months ago
Reviewers:
brettw
CC:
chromium-reviews, davemoore+watch_chromium.org
Visibility:
Public.

Description

Cleanup of r71320 commit. For ChromeOS: when starting session: if locale was changed (as a result of sync or because user preference differs from login locale): show notification. BUG=chromium-os:9164 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71646

Patch Set 1 : cleanup #

Patch Set 2 : cleanup #

Total comments: 8

Patch Set 3 : style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -20 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/locale_change_guard.cc View 1 2 3 chunks +57 lines, -18 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Denis Lagno
please take a look
9 years, 11 months ago (2011-01-17 14:39:45 UTC) #1
brettw
LGTM, thanks! http://codereview.chromium.org/6249009/diff/5001/chrome/browser/chromeos/locale_change_guard.cc File chrome/browser/chromeos/locale_change_guard.cc (right): http://codereview.chromium.org/6249009/diff/5001/chrome/browser/chromeos/locale_change_guard.cc#newcode37 chrome/browser/chromeos/locale_change_guard.cc:37: || tab_contents_ == NULL In Chrome we'll ...
9 years, 11 months ago (2011-01-17 16:40:30 UTC) #2
Denis Lagno
9 years, 11 months ago (2011-01-17 17:44:13 UTC) #3
http://codereview.chromium.org/6249009/diff/5001/chrome/browser/chromeos/loca...
File chrome/browser/chromeos/locale_change_guard.cc (right):

http://codereview.chromium.org/6249009/diff/5001/chrome/browser/chromeos/loca...
chrome/browser/chromeos/locale_change_guard.cc:37: || tab_contents_ == NULL
On 2011/01/17 16:40:30, brettw wrote:
> In Chrome we'll normally put the || at the end of the previous line.

Done.

http://codereview.chromium.org/6249009/diff/5001/chrome/browser/chromeos/loca...
chrome/browser/chromeos/locale_change_guard.cc:103: DCHECK(note_ == NULL &&
tab_contents_ == NULL);
On 2011/01/17 16:40:30, brettw wrote:
> You already did these two DCHECKs at the top of the function, and I don't
think
> either of them can change. I'd just delete them if this is the case.

Done.

http://codereview.chromium.org/6249009/diff/5001/chrome/browser/chromeos/loca...
chrome/browser/chromeos/locale_change_guard.cc:106: if (!from_locale.empty() &&
from_locale != to_locale) {
On 2011/01/17 16:40:30, brettw wrote:
> I actually liked the old way of returning early in this case. The reason is
that
> you return early a bunch above, and somehow it's easier for me to follow if a
> function is either consistently return early or not.

Done.

http://codereview.chromium.org/6249009/diff/5001/chrome/browser/chromeos/loca...
chrome/browser/chromeos/locale_change_guard.cc:131: || tab_contents_ == NULL
On 2011/01/17 16:40:30, brettw wrote:
> Ditto with || at the end.

Done.

Powered by Google App Engine
This is Rietveld 408576698