Index: chrome/browser/profiles/profile_manager.cc |
=================================================================== |
--- chrome/browser/profiles/profile_manager.cc (revision 91957) |
+++ chrome/browser/profiles/profile_manager.cc (working copy) |
@@ -566,3 +566,12 @@ |
ProfileInfoCache& cache = GetProfileInfoCache(); |
cache.DeleteProfileFromCache(profile_dir); |
} |
+ |
+// static |
+bool ProfileManager::IsMultipleProfilesEnabled() { |
+#if defined(TOOLKIT_VIEWS) && !defined(OS_CHROMEOS) |
+ return true; |
+#else |
+ return CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles); |
+#endif |
+} |