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

Issue 7566015: Only show prefer network checkbox for networks stored on user profile. (Closed)

Created:
9 years, 4 months ago by Charlie Lee
Modified:
9 years, 4 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, arv (Not doing code reviews), davemoore+watch_chromium.org
Visibility:
Public.

Description

Only show prefer network checkbox for networks stored on user profile. When the user logs in, auto connect to preferred network if appropriate. BUG=chromuim-os:3559 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95532

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -5 lines) Patch
M chrome/browser/chromeos/cros/mock_network_library.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 1 2 3 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/chromeos/internet_detail.html View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/chromeos/internet_detail.js View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/chromeos/internet_options.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Charlie Lee
9 years, 4 months ago (2011-08-03 21:14:17 UTC) #1
stevenjb
http://codereview.chromium.org/7566015/diff/1/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/7566015/diff/1/chrome/browser/chromeos/cros/network_library.cc#newcode3752 chrome/browser/chromeos/cros/network_library.cc:3752: if (active_wifi_ == NULL || active_wifi_->preferred()) This assumes that ...
9 years, 4 months ago (2011-08-03 21:37:52 UTC) #2
Charlie Lee
http://codereview.chromium.org/7566015/diff/1/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/7566015/diff/1/chrome/browser/chromeos/cros/network_library.cc#newcode3752 chrome/browser/chromeos/cros/network_library.cc:3752: if (active_wifi_ == NULL || active_wifi_->preferred()) Good advice. Thanks. ...
9 years, 4 months ago (2011-08-03 22:22:59 UTC) #3
stevenjb
http://codereview.chromium.org/7566015/diff/4001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/7566015/diff/4001/chrome/browser/chromeos/cros/network_library.cc#newcode4990 chrome/browser/chromeos/cros/network_library.cc:4990: SwitchToPreferredNetwork(); We should probably only call this when active_profile_path_ ...
9 years, 4 months ago (2011-08-03 22:58:26 UTC) #4
Charlie Lee
http://codereview.chromium.org/7566015/diff/4001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/7566015/diff/4001/chrome/browser/chromeos/cros/network_library.cc#newcode4990 chrome/browser/chromeos/cros/network_library.cc:4990: SwitchToPreferredNetwork(); On 2011/08/03 22:58:26, Steven Bennetts wrote: > We ...
9 years, 4 months ago (2011-08-04 20:43:02 UTC) #5
stevenjb
9 years, 4 months ago (2011-08-04 21:01:14 UTC) #6
LGTM

http://codereview.chromium.org/7566015/diff/4001/chrome/browser/chromeos/cros...
File chrome/browser/chromeos/cros/network_library.cc (right):

http://codereview.chromium.org/7566015/diff/4001/chrome/browser/chromeos/cros...
chrome/browser/chromeos/cros/network_library.cc:4990:
SwitchToPreferredNetwork();
On 2011/08/04 20:43:02, Charlie Lee wrote:
> On 2011/08/03 22:58:26, Steven Bennetts wrote:
> > We should probably only call this when active_profile_path_ changes, and we
> > should check on == user instead of != shared, in case we add additional
> profile
> > types later.
> 
> What's the format of the user profile? It seems like, right now in other
places,
> we resort to profile type is user if profile string is not shared. So that's
> what i'm doing here also.

Ah, I see, I didn't add a kUserProfilePath[]. We should probably replace
active_profile_path_ with active_profile_type_ and have one piece of code that
parses the path and sets the type, but this is fine for now. If we add any more
profile types we can do the refactoring then.

Powered by Google App Engine
This is Rietveld 408576698