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

Unified Diff: chromeos/dbus/shill_manager_client_stub.cc

Issue 24150004: Refactor the setup of Shill*Stubs' default environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: chromeos/dbus/shill_manager_client_stub.cc
diff --git a/chromeos/dbus/shill_manager_client_stub.cc b/chromeos/dbus/shill_manager_client_stub.cc
index 061487488e93375a8dc5bf40c496db1d3724dee9..421836f44abbdb394a1607ecd62a253ab89b14a3 100644
--- a/chromeos/dbus/shill_manager_client_stub.cc
+++ b/chromeos/dbus/shill_manager_client_stub.cc
@@ -84,9 +84,7 @@ ShillManagerClientStub::~ShillManagerClientStub() {}
// ShillManagerClient overrides.
-void ShillManagerClientStub::Init(dbus::Bus* bus) {
- SetDefaultProperties();
-}
+void ShillManagerClientStub::Init(dbus::Bus* bus) {}
void ShillManagerClientStub::AddPropertyChangedObserver(
ShillPropertyChangedObserver* observer) {
@@ -491,17 +489,6 @@ void ShillManagerClientStub::AddServiceToWatchList(
flimflam::kServiceWatchListProperty, 0);
}
-void ShillManagerClientStub::SetDefaultProperties() {
- // Stub Technologies.
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kDisableStubEthernet)) {
- AddTechnology(flimflam::kTypeEthernet, true);
- }
- AddTechnology(flimflam::kTypeWifi, true);
- AddTechnology(flimflam::kTypeCellular, true);
- AddTechnology(flimflam::kTypeWimax, true);
-}
-
void ShillManagerClientStub::PassStubProperties(
const DictionaryValueCallback& callback) const {
scoped_ptr<base::DictionaryValue> stub_properties(

Powered by Google App Engine
This is Rietveld 408576698