With this implementation, logging on to sync logs you in to the multiprofile system (if --multi-profiles flag is on).
A drop-down menu then appears, from which you can create a new profile; this will open a browser window from which you can sync to a different Google account.
When the browser is shut down, the active profile is saved. This profile will be used when the browser is reopened.
Many things need to be added -- there's no duplicate checking, no way to delete a profile, and no color scheme -- etc. This is just the most basic multi-profile functionality.
BUG=60105
TEST=existing tests; full suite to come.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83261
Review URL: http://codereview.chromium.org/6881054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83284 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 2dd4dcb..2df2b2e4 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -38,6 +38,7 @@
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/profiles/profile_impl.h"
+#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/renderer_host/web_cache_manager.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/search_engines/template_url_model.h"
@@ -109,6 +110,7 @@
NotificationUIManager::RegisterPrefs(local_state);
PrefProxyConfigService::RegisterPrefs(local_state);
policy::CloudPolicySubsystem::RegisterPrefs(local_state);
+ ProfileManager::RegisterPrefs(local_state);
#if defined(OS_CHROMEOS)
chromeos::AudioMixerAlsa::RegisterPrefs(local_state);
chromeos::UserManager::RegisterPrefs(local_state);