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

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

Issue 3675002: Add network_menu_ui.cc and network_menu.js (Closed)
Patch Set: . Created 10 years, 2 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 | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/dom_ui/network_menu_ui.h » ('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
diff --git a/chrome/browser/chromeos/cros/network_library.h b/chrome/browser/chromeos/cros/network_library.h
index fa9c4bb218289f9bacdd4fac0043144bec33d349..1b1178821c72f8556b3a97a61248ad665ac10fd9 100644
--- a/chrome/browser/chromeos/cros/network_library.h
+++ b/chrome/browser/chromeos/cros/network_library.h
@@ -30,6 +30,7 @@ class Network {
bool connecting_or_connected() const { return connecting() || connected(); }
bool failed() const { return state_ == STATE_FAILURE; }
ConnectionError error() const { return error_; }
+ ConnectionState state() const { return state_; }
void set_service_path(const std::string& service_path) {
service_path_ = service_path; }
@@ -45,11 +46,9 @@ class Network {
virtual void ConfigureFromService(const ServiceInfo& service);
// Return a string representation of the state code.
- // This not translated and should be only used for debugging purposes.
std::string GetStateString() const;
// Return a string representation of the error code.
- // This not translated and should be only used for debugging purposes.
std::string GetErrorString() const;
protected:
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/dom_ui/network_menu_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698