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

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

Issue 7329034: Multi-Profiles: Enable multi-profiles by default for views ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Multi-Profiles: Enable multi-profiles by default for views ui Created 9 years, 5 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/sync/sync_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+}
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698