What's the difference between com.android.chrome and com.google.android.gms.chromesync? I'm trying to understand what is the difference &amp; the purpose of two lines in /data/system/sync/accounts.xml which relate to Chrome app.
&lt;authority id=&quot;101&quot; user=&quot;0&quot; enabled=&quot;true&quot; account=&quot;email@gmail.com&quot; type=&quot;com.google&quot; authority=&quot;com.android.chrome&quot; syncable=&quot;true&quot; /&gt;

&lt;authority id=&quot;202&quot; user=&quot;0&quot; enabled=&quot;true&quot; account=&quot;email@gmail.com&quot; type=&quot;com.google&quot; authority=&quot;com.google.android.gms.chromesync&quot; syncable=&quot;true&quot;&gt;

When I turn off sync in device, Chrome app will (only) switch the boolean flag sync_switch inside  /data/data/com.android.chrome/shared_prefs/com.android.chrome_preferences.xml which also has the lines:

&lt;string name=&quot;sync_acct_type&quot;&gt;com.google&lt;/string&gt; which means I logged in to a Google account

&lt;string name=&quot;sync_acct_name&quot;&gt;my_gmail@gmail.com&lt;/string&gt; represents my email to sync with


Questions:

Why do I have two lines related to Chrome; com.google.android.gms.chromesync &amp; com.android.chrome?
Assuming com.android.chrome is the Chrome app, what is chromesync?
What will happen for multiple users?
I have two accounts (my work &amp; my personal) but in Chrome I'm logged to my personal, will it sync both?


Related references

https://chromium.googlesource.com/chromium/src.git/+/lkcr/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java#189

https://chromium.googlesource.com/chromium/src.git/+/lkcr/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java#325

https://chromium.googlesource.com/chromium/src.git/+/lkcr/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java#351
com.android.chrome is Google Chrome's package name.

com.google.android.gms.chromesync is part of Google Play Services used to sync Chrome's bookmarks, history and password. It's part of Chrome Sync that was made available for use via Google Play Service a few years back as stated in this article:

If you've ever used Google Chrome on Android –let's be honest, you probably have– then you've probably signed into your account and activated Chrome Sync to have things like bookmarks, history, and passwords in constant harmony across all of your devices. While this works really well, the setup process gets a little redundant for users that install all three variants of Chrome (Stable, Beta, and Dev). However, it looks like Chrome Sync is going to move, or at least become available directly through Google Play Services. Several activities and providers have been added, along with some of the necessary strings to implement the same functionality in the GMS package.



What will happen for multiple users? I have two accounts (my work &amp; my personal) but in Chrome I'm logged to my personal, will it sync both?

If you are logged to Chrome with only your personal account, then only your personal account should be synced.