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

Unified Diff: chromeos/dbus/fake_shill_service_client.cc

Issue 183033004: Cleanup shill_stub_helper, GetSharedProfilePath -> ShillProfileClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
Index: chromeos/dbus/fake_shill_service_client.cc
diff --git a/chromeos/dbus/fake_shill_service_client.cc b/chromeos/dbus/fake_shill_service_client.cc
index c968d80ec67892806d2c9a00518968a479fc2d2c..8987c189686e8a8fa978ec3ee811f8ebda403109 100644
--- a/chromeos/dbus/fake_shill_service_client.cc
+++ b/chromeos/dbus/fake_shill_service_client.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "chromeos/chromeos_switches.h"
#include "chromeos/dbus/dbus_thread_manager.h"
+#include "chromeos/dbus/shill_device_client.h"
#include "chromeos/dbus/shill_manager_client.h"
#include "chromeos/dbus/shill_property_changed_observer.h"
#include "chromeos/dbus/shill_stub_helper.h"
@@ -337,6 +338,9 @@ void FakeShillServiceClient::AddServiceWithIPConfig(
bool add_to_watch_list) {
DBusThreadManager::Get()->GetShillManagerClient()->GetTestInterface()->
AddManagerService(service_path, add_to_visible_list, add_to_watch_list);
+ std::string device_path =
+ DBusThreadManager::Get()->GetShillDeviceClient()->GetTestInterface()->
+ GetDevicePathForType(type);
base::DictionaryValue* properties =
GetModifiableServiceProperties(service_path, true);
@@ -347,8 +351,7 @@ void FakeShillServiceClient::AddServiceWithIPConfig(
base::Value::CreateStringValue(name));
properties->SetWithoutPathExpansion(
shill::kDeviceProperty,
- base::Value::CreateStringValue(
- shill_stub_helper::DevicePathForType(type)));
+ base::Value::CreateStringValue(device_path));
properties->SetWithoutPathExpansion(
shill::kTypeProperty,
base::Value::CreateStringValue(type));
« no previous file with comments | « chrome/browser/extensions/api/networking_private/networking_private_apitest.cc ('k') | chromeos/dbus/shill_profile_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698