Rename CloudPolicyService::Observer method for clarity
This is a drive-by cleanup: On tonikitoo's chain of CLs converting UserCloudPolicyTokenForwarder to IdentityManager, I noticed the CloudPolicyService::Observer::OnInitializationComplete() method. This method is ambiguously named from a client POV, as their override simply ends up being Foo::OnInitializationComplete(). This was especially weird from the POV of UserCloudPolicyTokenForwarder because its implementation of that method starts its *own* initialization, i.e., invokes Initialize() ;). This CL renames the method to OnCloudPolicyServiceInitializationComplete() and additionally eliminates the CloudPolicyService* argument, which is not needed: its only usage is to have a few clients confirm that it is the same as the instance on which they registered as an observer, but this will always be the case by the nature of observer callbacks. Change-Id: Iaf73c26b9b4ad1305ad6774c23da0828200d499c Reviewed-on: https://chromium-review.googlesource.com/c/1329146Reviewed-by:Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#607183}
Showing
Please register or sign in to comment