|  | Integrate UI with authentication flow.
1. Integrate connect call into Blimp settings UI.
2. Polish the connect functions in java and c++, now identity_source is
responsible for handling GoogleServiceAuthError::REQUEST_CANCELED, since
the Java approach(AccountTrackerService listener) didn't work with
non-startup connect attempts. And code structure is cleaner in this way.
3. Removed BlimpSettingsCallback, and moved embedder functions into
BlimpClientContextDelegate. Also added testing classes for
BlimpClientContext and BlimpClientContextDelegate, but these classes can
only test shim Java layer.
4. Created BUILD.gn for core/settings, and put jni files there. Java
file is still in core/, for easier review diff. There will be future CL
to move these Java files.
5. Added BlimpClientContextInternal Java interface to decouple internal build
targets.
BUG=624457 
Committed: https://crrev.com/e8dee94d09ad68c28f72ee1acabcbaab0b071fbe 
Cr-Commit-Position: refs/heads/master@{#415511}
  
  
   
  
   
  
   
  
   
  
   
      Total comments: 34
      
     
  
   
  
   
  
   
      Total comments: 10
      
     
  
   
    
  
  
    
      |  | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+859 lines, -183 lines) | Patch |  
        |  | M | blimp/client/BUILD.gn | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 1 chunk | +6 lines, -1 line | 0 comments | Download |  
        |  | M | blimp/client/DEPS | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | blimp/client/app/android/AndroidManifest.xml.jinja2 | View |  | 2 chunks | +4 lines, -1 line | 0 comments | Download |  
        |  | M | blimp/client/app/android/java/strings/android_blimp_strings.grd | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 2 chunks | +13 lines, -1 line | 0 comments | Download |  
        |  | A | blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6 | 1 chunk | +72 lines, -0 lines | 0 comments | Download |  
        |  | A | blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContextDelegate.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6 | 1 chunk | +41 lines, -0 lines | 0 comments | Download |  
        |  | M | blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/BlimpPreferencesTest.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 3 chunks | +110 lines, -30 lines | 0 comments | Download |  
        |  | M | blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/MockPreferences.java | View |  | 1 chunk | +5 lines, -3 lines | 0 comments | Download |  
        |  | M | blimp/client/core/BUILD.gn | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 3 chunks | +14 lines, -18 lines | 0 comments | Download |  
        |  | M | blimp/client/core/android/blimp_client_context_impl_android.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6 | 1 chunk | +4 lines, -0 lines | 0 comments | Download |  
        |  | M | blimp/client/core/android/blimp_client_context_impl_android.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6 | 2 chunks | +10 lines, -0 lines | 0 comments | Download |  
        |  | M | blimp/client/core/android/blimp_jni_registrar.cc | View |  | 2 chunks | +2 lines, -0 lines | 0 comments | Download |  
        |  | M | blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6 | 5 chunks | +17 lines, -10 lines | 0 comments | Download |  
        |  | M | blimp/client/core/android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6 | 2 chunks | +2 lines, -5 lines | 0 comments | Download |  
        |  | D | blimp/client/core/android/java/src/org/chromium/blimp/core/settings/AboutBlimpPreferences.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 5 chunks | +174 lines, -28 lines | 0 comments | Download |  
        |  | A | blimp/client/core/android/java/src/org/chromium/blimp/core/settings/BlimpPreferencesDelegate.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 1 chunk | +28 lines, -0 lines | 0 comments | Download |  
        |  | D | blimp/client/core/android/java/src/org/chromium/blimp/core/settings/PreferencesUtil.java | View | 1
        
          2
        
          3
        
          4 | 2 chunks | +21 lines, -2 lines | 0 comments | Download |  
        |  | M | blimp/client/core/blimp_client_context_impl.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 3 chunks | +9 lines, -3 lines | 0 comments | Download |  
        |  | M | blimp/client/core/blimp_client_context_impl.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 2 chunks | +14 lines, -9 lines | 0 comments | Download |  
        |  | M | blimp/client/core/session/identity_source.h | View |  | 3 chunks | +9 lines, -1 line | 0 comments | Download |  
        |  | M | blimp/client/core/session/identity_source.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 6 chunks | +47 lines, -3 lines | 0 comments | Download |  
        |  | M | blimp/client/core/session/identity_source_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5 | 2 chunks | +43 lines, -1 line | 0 comments | Download |  
        |  | A | blimp/client/core/settings/BUILD.gn | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 1 chunk | +52 lines, -0 lines | 0 comments | Download |  
        |  | A | blimp/client/core/settings/android/blimp_settings_android.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 1 chunk | +50 lines, -0 lines | 0 comments | Download |  
        |  | A | blimp/client/core/settings/android/blimp_settings_android.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 1 chunk | +79 lines, -0 lines | 0 comments | Download |  
        |  | M | blimp/client/public/BUILD.gn | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 1 chunk | +0 lines, -1 line | 0 comments | Download |  
        |  | M | blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContext.java | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6 | 2 chunks | +3 lines, -6 lines | 0 comments | Download |  
        |  | M | blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContextDelegate.java | View |  | 1 chunk | +11 lines, -0 lines | 0 comments | Download |  
        |  | D | blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpSettingsCallbacks.java | View |  | 1 chunk | +0 lines, -17 lines | 0 comments | Download |  
        |  | M | build/android/lint/suppressions.xml | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | D | chrome/android/java/src/org/chromium/chrome/browser/blimp/BlimpSettingsCallbacksImpl.java | View |  | 1 chunk | +0 lines, -19 lines | 0 comments | Download |  
        |  | M | chrome/android/java/src/org/chromium/chrome/browser/blimp/ChromeBlimpClientContextDelegate.java | View |  | 5 chunks | +16 lines, -21 lines | 0 comments | Download |  
        |  | M | chrome/android/java/src/org/chromium/chrome/browser/preferences/MainPreferences.java | View |  | 2 chunks | +1 line, -2 lines | 0 comments | Download |  
        |  | M | chrome/android/java_sources.gni | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 1 chunk | +0 lines, -1 line | 0 comments | Download |  
    Total messages: 48 (36 generated)
     |