[basemgr] Update correct profile_id before saving user account
Before this CL, P2P sync failed due to mismatch in netconnector
service name created in P2P provider. Now P2P provider uses
account profile_id to create service name. In this CL, modified
profile_id field to assign unique value for the user.
TESTED=P2P sync between NUC and Acer devices is succesful
Change-Id: Iacd3245aa845c6e2616ffd42f1c786f2cc30993f
diff --git a/bin/basemgr/user_provider_impl.cc b/bin/basemgr/user_provider_impl.cc
index 8d619a5..8520afb 100644
--- a/bin/basemgr/user_provider_impl.cc
+++ b/bin/basemgr/user_provider_impl.cc
@@ -348,7 +348,7 @@
builder.CreateString(account->display_name),
builder.CreateString(account->url),
builder.CreateString(account->image_url),
- builder.CreateString(account->id)));
+ builder.CreateString(account->profile_id)));
// Write user info to disk
builder.Finish(fuchsia::modular::CreateUsersStorage(