Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5409)

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 10656033: [sync] Automatic bootstrapping of Sync on Win 8 from cached credentials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fully decouple PSS and CCS. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/signin/token_service.h » ('j') | chrome/browser/signin/token_service.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7a5199b570866ce71fbd6ab0f9d35ce0783ed4e2..504b1bb0fe44087c5c0dffdec96bd608443417f8 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -67,6 +67,9 @@
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/speech/chrome_speech_recognition_preferences.h"
+#if defined(OS_WIN)
+#include "chrome/browser/sync/credential_cache_service_factory_win.h"
+#endif
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/ui/startup/startup_browser_creator.h"
#include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
@@ -855,6 +858,10 @@ void ProfileImpl::Observe(int type,
case chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED:
// Causes lazy-load if sync is enabled.
ProfileSyncServiceFactory::GetInstance()->GetForProfile(this);
+#if defined(OS_WIN)
+ // Causes lazy-load on Windows 8 if sync is enabled.
+ syncer::CredentialCacheServiceFactory::GetInstance()->GetForProfile(this);
Andrew T Wilson (Slow) 2012/07/24 20:55:29 I think the cleaner way to do this is to have Cred
Raghu Simha 2012/07/24 22:17:35 Done.
+#endif // OS_WIN
registrar_.Remove(this, chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED,
content::Source<Profile>(this));
break;
« no previous file with comments | « no previous file | chrome/browser/signin/token_service.h » ('j') | chrome/browser/signin/token_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698