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: |