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

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

Issue 7256002: Multi-Profiles: New Profile Setup UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: show product logo at bottom Created 9 years, 6 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
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 8b20ab3cc47f9d1e266dbf34db0f2cecc9bb572c..05fb7f53027dfeb1ccc921391857cf002c7a4ce2 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/scoped_user_pref_update.h"
+#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/ui/browser_window.h"
@@ -504,3 +505,13 @@ ProfileManager::GetSortedProfilesFromDirectoryMap() {
std::sort(profiles.begin(), profiles.end(), CompareProfilePathAndName);
return profiles;
}
+
+ProfileInfoCache& ProfileManager::GetProfileInfoCache() {
+ if (!profile_info_cache_.get()) {
+ FilePath user_data_dir;
+ PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
+ profile_info_cache_.reset(new ProfileInfoCache(
+ g_browser_process->local_state(), user_data_dir));
+ }
+ return *profile_info_cache_.get();
+}

Powered by Google App Engine
This is Rietveld 408576698