shill: Nuke AdoptProfile
Remove this method from Manager, and turn it into a manager_unittest
method function.
BUG=chromium-os:22421
TEST=Rerun unit tests
Change-Id: Ia3dc3f6b1cde71e52198a01f04d2a423058d9f72
Reviewed-on: https://gerrit.chromium.org/gerrit/11123
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/manager.cc b/manager.cc
index 2b21f24..c3cbc12 100644
--- a/manager.cc
+++ b/manager.cc
@@ -148,10 +148,6 @@
device_info_.Stop();
}
-void Manager::AdoptProfile(const ProfileRefPtr &profile) {
- profiles_.push_back(profile);
-}
-
void Manager::CreateProfile(const std::string &name, Error *error) {
Profile::Identifier ident;
if (!Profile::ParseIdentifier(name, &ident)) {
@@ -228,7 +224,7 @@
return;
}
- AdoptProfile(profile);
+ profiles_.push_back(profile);
// Offer each registered Service the opportunity to join this new Profile.
vector<ServiceRefPtr>::iterator it;