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

Unified Diff: chromeos/network/network_state.cc

Issue 12319145: Using the new Network*Handlers in networkingPrivate Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Steven's comments. Created 7 years, 10 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
« chromeos/network/network_state.h ('K') | « chromeos/network/network_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state.cc
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
index bbe698aac0628b07074e8cc4d3782e780a9fbcc5..06c9097b9f4aeafa7ec2c6f3cbfbb86caadaa4c7 100644
--- a/chromeos/network/network_state.cc
+++ b/chromeos/network/network_state.cc
@@ -51,6 +51,29 @@ bool NetworkState::IsConnectingState() const {
return StateIsConnecting(connection_state_);
}
+void NetworkState::FillDictionary(base::DictionaryValue* dictionary) const {
stevenjb 2013/03/05 17:59:18 nit: let's put this (and the header definition) ju
pneubeck (no reviews) 2013/03/07 15:53:02 Done.
+ dictionary->SetStringWithoutPathExpansion(flimflam::kNameProperty, name());
+ dictionary->SetStringWithoutPathExpansion(flimflam::kTypeProperty, type());
+ dictionary->SetIntegerWithoutPathExpansion(flimflam::kSignalStrengthProperty,
+ signal_strength());
gauravsh 2013/03/05 21:04:56 NIT: indent off?
pneubeck (no reviews) 2013/03/07 15:53:02 Done.
+ dictionary->SetStringWithoutPathExpansion(flimflam::kStateProperty,
+ connection_state());
gauravsh 2013/03/05 21:04:56 NIT: indent off? (and for the lines below as well)
pneubeck (no reviews) 2013/03/07 15:53:02 Done.
+ dictionary->SetStringWithoutPathExpansion(flimflam::kErrorProperty,
+ error());
+ dictionary->SetStringWithoutPathExpansion(flimflam::kActivationStateProperty,
+ activation_state());
+ dictionary->SetStringWithoutPathExpansion(flimflam::kRoamingStateProperty,
+ roaming());
+ dictionary->SetStringWithoutPathExpansion(flimflam::kSecurityProperty,
+ security());
+ dictionary->SetStringWithoutPathExpansion(
+ flimflam::kNetworkTechnologyProperty,
+ technology());
+ dictionary->SetStringWithoutPathExpansion(flimflam::kDeviceProperty,
+ device_path());
+ dictionary->SetStringWithoutPathExpansion(flimflam::kGuidProperty, guid());
+}
+
// static
bool NetworkState::StateIsConnected(const std::string& connection_state) {
return (connection_state == flimflam::kStateReady ||
« chromeos/network/network_state.h ('K') | « chromeos/network/network_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698