diff options
author | Paul Stewart <pstew@chromium.org> | 2011-11-02 18:45:59 -0700 |
---|---|---|
committer | Paul Stewart <pstew@chromium.org> | 2011-11-03 12:35:04 -0700 |
commit | bba6a5b87cb21424770228cd73e10574a2151568 (patch) | |
tree | e4d64fb282577d314d4fd9cce849a3084b4a853a /profile.h | |
parent | 1271d6828b226f951fa69ed9927fa7c9a358318a (diff) | |
download | shill-bba6a5b87cb21424770228cd73e10574a2151568.tar.gz |
shill: Rename MergeService to ConfigureService
Collateral changes: Use ContainsService internally to profile's
ConfigureService. Refrain from using Service::GetStorageIdentifier
directly. I can think of scenarios coming up where it is important
for the Service to determine for itself whether a StorageInterface
contains anything it can use.
BUG=chromium-os:22422
TEST=ReRun Unit Tests
Change-Id: I34c6cb272c1540ab1e8d8d9bed4083b52e20f75e
Reviewed-on: https://gerrit.chromium.org/gerrit/11099
Commit-Ready: Paul Stewart <pstew@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'profile.h')
-rw-r--r-- | profile.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -81,10 +81,12 @@ class Profile : public base::RefCounted<Profile> { // Returns true if |service| was found and updated, false if not found. bool UpdateService(const ServiceRefPtr &service); - // Determine if |service| represents a service that's already in |services_|. - // If so, merge them smartly and return true. If not, return false. - bool MergeService(const ServiceRefPtr &service); + // Ask |service| if it can configure itself from the profile. If it can, + // change the service to point at this profile, ask |service| to perform + // the configuration and return true. If not, return false. + bool ConfigureService(const ServiceRefPtr &service); + // Return whether |service| can configure itself from the profile. bool ContainsService(const ServiceConstRefPtr &service); std::vector<std::string> EnumerateAvailableServices(); |