Making profile avatars and names sync. This is done by moving these two properties...
commit881cb0b69ae3d81c42ea91b9c1e798b8a32ab22b
authorjwd@chromium.org <jwd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 13 Dec 2011 20:39:54 +0000 (13 20:39 +0000)
committerjwd@chromium.org <jwd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 13 Dec 2011 20:39:54 +0000 (13 20:39 +0000)
treef7b9dfc3c4a9dcf230f7fc4eefe010e671bd22c9
parent1967b09ecf28b09636f85a657b4752098467d2b7
Making profile avatars and names sync. This is done by moving these two properties into profile preferences and making them syncable. The profile observes changes to these prefs and pushes them to the profile info cache.

The initialization of these prefs and of the info cache is done in two steps. First, the profile prefs are setup with values generated by the profile info cache. This causes the profile to try to push the changed values to the info cache, but since the profile isn't in the cache, it fails

BUG=87658
TEST=ProfileManagerTest.InitProfileUserPrefs, Have two machines with chrome, both with multiple profiles and each with one profile signed in to the same account. Change avatar/name on one, and it will change on the other.

Review URL: http://codereview.chromium.org/8883030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114263 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/profiles/profile_impl.cc
chrome/browser/profiles/profile_impl.h
chrome/browser/profiles/profile_info_cache.cc
chrome/browser/profiles/profile_info_cache.h
chrome/browser/profiles/profile_manager.cc
chrome/browser/profiles/profile_manager.h
chrome/browser/profiles/profile_manager_unittest.cc
chrome/browser/sync/test/integration/sync_test.cc
chrome/browser/ui/webui/options/manage_profile_handler.cc
chrome/common/pref_names.cc
chrome/common/pref_names.h