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

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: Address review comments 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
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/resources/new_profile.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index a8f039b441df000876720424b268c91797a63411..93ad104fd874e1c58503d64f89632bc9779d050b 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"
@@ -502,3 +503,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();
+}
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/resources/new_profile.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698