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

Unified Diff: chrome/browser/profiles/profile_manager_util.h

Issue 18615010: Refactor utility methods out of the ProfileManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix CrOS compile error Created 7 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.cc ('k') | chrome/browser/profiles/profile_manager_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_util.h
diff --git a/chrome/browser/profiles/profile_manager_util.h b/chrome/browser/profiles/profile_manager_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d6190cf3025d8d00d0452ffd43a06c17b4d58563
--- /dev/null
+++ b/chrome/browser/profiles/profile_manager_util.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
tfarina 2013/07/08 19:42:51 micronit: no (c)
noms 2013/07/08 21:44:48 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_
+#define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_
+
+#include "base/files/file_path.h"
+#include "chrome/browser/profiles/profile.h"
tfarina 2013/07/08 19:42:51 could you forward declare this instead?
noms 2013/07/08 21:44:48 Done.
+#include "chrome/browser/ui/host_desktop.h"
+#include "chrome/browser/ui/startup/startup_types.h"
+
+namespace profiles {
+
+// Checks if multiple profiles is enabled.
+bool IsMultipleProfilesEnabled();
+
+// Returns the path to the default profile directory, based on the given
+// user data directory.
+base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir);
+
+// Returns the path to the preferences file given the user profile directory.
+base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir);
+
+// Register multi-profile related preferences in Local State.
+void RegisterPrefs(PrefRegistrySimple* registry);
tfarina 2013/07/08 19:42:51 please forward declare this, don't rely on the inc
noms 2013/07/08 21:44:48 Done.
+
+// Activates a window for |profile| on the desktop specified by
+// |desktop_type|. If no such window yet exists, or if |always_create| is
+// true, this first creates a new window, then activates
+// that. If activating an exiting window and multiple windows exists then the
+// window that was most recently active is activated. This is used for
+// creation of a window from the multi-profile dropdown menu.
+void FindOrCreateNewWindowForProfile(
+ Profile* profile,
+ chrome::startup::IsProcessStartup process_startup,
+ chrome::startup::IsFirstRun is_first_run,
+ chrome::HostDesktopType desktop_type,
+ bool always_create);
+
+} // namespace profiles
+
+#endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/profiles/profile_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698