Registration of DevTools bridge in GCD.
Code for registering and unregistering instance of DevTools bridge in GCD.
GCDRegistrationFragment is able to perform registration including:
1. Asking user for desired account to register.
2. Requesting OAuth permissions for GCD (may show confirmation activity to the user).
3. Registration in Cloud Messages if needed.
It also shows toasts with registration/unregistration results.
GCDRegistrationFragment is absstract and has no views. Testing implementation
shows button "Registed in GCD/Unregister (registered for ...)". Registration is not
persistent yet.
BUG=
383418
TEST=New button in main activity of DevToolsBridgeTest.apk: register/unregister.
Committed:
https://crrev.com/a2da02bd99d78de549b617510551ec5e1f7073d9
Cr-Commit-Position: refs/heads/master@{#302251}
Committed:
https://crrev.com/ffb7ed195778fe9f7649da6b0f60b26f2cdefc4a
Cr-Commit-Position: refs/heads/master@{#302261}