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

Unified Diff: chrome/browser/ui/app_list/app_list_service_impl.cc

Issue 33753002: Sooper experimental refactoring of the profile info cache. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 2 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/ui/app_list/app_list_service_impl.cc
diff --git a/chrome/browser/ui/app_list/app_list_service_impl.cc b/chrome/browser/ui/app_list/app_list_service_impl.cc
index 90fc03b306794a4cf04881bb427b8832c8fecc19..90e21d87e5d0d5e8abab4f60dfccdf44965fc8d6 100644
--- a/chrome/browser/ui/app_list/app_list_service_impl.cc
+++ b/chrome/browser/ui/app_list/app_list_service_impl.cc
@@ -127,8 +127,11 @@ class ProfileStoreImpl : public ProfileStore {
virtual bool IsProfileManaged(const base::FilePath& profile_path) OVERRIDE {
ProfileInfoCache& profile_info =
g_browser_process->profile_manager()->GetProfileInfoCache();
- size_t profile_index = profile_info.GetIndexOfProfileWithPath(profile_path);
- return profile_info.ProfileIsManagedAtIndex(profile_index);
+ ProfileInfoEntry entry;
+ if (profile_info.GetInfoForProfile(profile_path, &entry)) {
+ return entry.IsManaged();
+ }
+ return false;
}
private:
« no previous file with comments | « chrome/browser/task_manager/task_manager_util.cc ('k') | chrome/browser/ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698