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

Issue 23466015: network_list.js should reflect the correct logged in user type. (Closed)

Created:
7 years, 3 months ago by armansito
Modified:
7 years, 3 months ago
Reviewers:
stevenjb, Ben Chan
CC:
chromium-reviews, dbeam+watch-options_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

network_list.js should reflect the correct logged in user type. Updated InternetOptionsHandler and network_list.js to observe LoginState updates, so that using UIAccountTweaks is not the only way to determine whether or not the current user is owner. This is because |loadTimeData| may not contain the current user login details if the logged in user type updates after the UI fills in the UIAccountTweaks info. BUG=285589 R=stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222390

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased and addressed stevenjb@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -4 lines) Patch
M chrome/browser/resources/options/chromeos/network_list.js View 1 3 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.h View 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 6 chunks +44 lines, -0 lines 0 comments Download
M chromeos/login/login_state.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/login/login_state.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
stevenjb
lgtm https://codereview.chromium.org/23466015/diff/1/chrome/browser/resources/options/chromeos/network_list.js File chrome/browser/resources/options/chromeos/network_list.js (right): https://codereview.chromium.org/23466015/diff/1/chrome/browser/resources/options/chromeos/network_list.js#newcode477 chrome/browser/resources/options/chromeos/network_list.js:477: UIAccountTweaks.currentUserIsOwner()); Do we still need toe UIAccountTweaks check? ...
7 years, 3 months ago (2013-09-10 16:58:05 UTC) #1
armansito
https://codereview.chromium.org/23466015/diff/1/chrome/browser/resources/options/chromeos/network_list.js File chrome/browser/resources/options/chromeos/network_list.js (right): https://codereview.chromium.org/23466015/diff/1/chrome/browser/resources/options/chromeos/network_list.js#newcode477 chrome/browser/resources/options/chromeos/network_list.js:477: UIAccountTweaks.currentUserIsOwner()); On 2013/09/10 16:58:05, stevenjb wrote: > Do we ...
7 years, 3 months ago (2013-09-10 21:55:19 UTC) #2
armansito
7 years, 3 months ago (2013-09-10 23:23:14 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r222390 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698