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

Unified Diff: chrome/browser/chromeos/cros/network_library.h

Issue 2853001: Fix bug where auto-connect setting is not immediately saved.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library.h
===================================================================
--- chrome/browser/chromeos/cros/network_library.h (revision 50012)
+++ chrome/browser/chromeos/cros/network_library.h (working copy)
@@ -31,8 +31,10 @@
bool failed() const { return state_ == STATE_FAILURE; }
ConnectionError error() const { return error_; }
- void set_connecting(bool connecting) { state_ = STATE_CONFIGURATION; }
- void set_connected(bool connected) { state_ = STATE_READY; }
+ void set_connecting(bool connecting) { state_ = (connecting ?
+ STATE_ASSOCIATION : STATE_IDLE); }
+ void set_connected(bool connected) { state_ = (connected ?
+ STATE_READY : STATE_IDLE); }
// Clear the fields.
virtual void Clear();
@@ -435,10 +437,12 @@
// Force an update of the system info.
void UpdateSystemInfo();
- // Gets the WifiNetwork with the given name. Returns whether the wifi network
- // was found or not.
- bool GetWifiNetworkByName(const std::string& name, WifiNetwork* wifi);
+ // Gets the WifiNetwork with the given name. Returns NULL if not found.
+ WifiNetwork* GetWifiNetworkByName(const std::string& name);
+ // Gets the WifiNetwork with the given path. Returns NULL if not found.
+ WifiNetwork* GetWifiNetworkByPath(const std::string& path);
+
// Enables/disables the specified network device.
void EnableNetworkDeviceType(ConnectionType device, bool enable);
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698