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

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

Issue 11852022: Make profile shortcuts more sane when using --user-data-dir=. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
Index: chrome/browser/profiles/profile_shortcut_manager_win.h
===================================================================
--- chrome/browser/profiles/profile_shortcut_manager_win.h (revision 178353)
+++ chrome/browser/profiles/profile_shortcut_manager_win.h (working copy)
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
#define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_
+#include "base/command_line.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
class BrowserDistribution;
@@ -22,9 +23,21 @@
string16 GetShortcutFilenameForProfile(const string16& profile_name,
BrowserDistribution* distribution);
-// Returns the command-line flags to launch Chrome with the given profile.
-string16 CreateProfileShortcutFlags(const FilePath& profile_path);
+// If a custom user data directory has been specified, returns its value.
+// Otherwise, returns an empty FilePath().
+FilePath GetCustomUserDataDirectory();
+// Creates a CommandLine that should be used for creating a non-profile
+// shortcut. This command line will either be empty or will have a user data
+// dir specified, when running with a custom one.
+CommandLine CreateCommandLineForNonProfileShortcut(const FilePath& chrome_exe);
+
+// Creates a CommandLine that should be used for creating a profile shortcut
+// for the given |profile_path|. When running with a custom user data dir, the
+// command line will include the appropriate user data dir flag.
+CommandLine CreateCommandLineForProfileShortcut(const FilePath& chrome_exe,
+ const FilePath& profile_path);
+
} // namespace internal
} // namespace profiles

Powered by Google App Engine
This is Rietveld 408576698