• serya's avatar
    Registration of DevTools bridge in GCD. · a2da02bd
    serya authored
    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.
    
    Review URL: https://codereview.chromium.org/677843006
    
    Cr-Commit-Position: refs/heads/master@{#302251}
    a2da02bd
devtools_bridge.gyp 1.43 KB