| 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..fcff87d084ceb4fc652aaff93f14b5c3c601e00a
|
| --- /dev/null
|
| +++ b/chrome/browser/profiles/profile_manager_util.h
|
| @@ -0,0 +1,47 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// 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 "chrome/browser/ui/host_desktop.h"
|
| +#include "chrome/browser/ui/startup/startup_types.h"
|
| +
|
| +namespace base {
|
| + class FilePath;
|
| +}
|
| +class PrefRegistrySimple;
|
| +class Profile;
|
| +
|
| +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);
|
| +
|
| +// 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_
|
|
|