Application desktop shortcuts now save the user profile they were created in.
When loading shortcuts to chrome apps from the desktop, they ought to load the app from the profile they were created in (in case the user has multiple profiles with the same app.)
This adds the --profile-directory switch to the shortcut path for Windows and Linux.
BUG=103858
TEST=Manual
Review URL: https://chromiumcodereview.appspot.com/10501007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143091 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h
index a1ce234b..02bbefb 100644
--- a/chrome/browser/shell_integration.h
+++ b/chrome/browser/shell_integration.h
@@ -88,6 +88,7 @@
string16 description;
FilePath extension_path;
gfx::Image favicon;
+ FilePath profile_path;
// Shortcuts to platform apps are created differently. They start up with
// their own user data directory and load the app from |extension_path|.
@@ -120,7 +121,8 @@
static CommandLine CommandLineArgsForLauncher(
const GURL& url,
const std::string& extension_app_id,
- bool is_platform_app);
+ bool is_platform_app,
+ const FilePath& profile_path);
#if defined(OS_WIN)
// Generates an application user model ID (AppUserModelId) for a given app