Fix command line for app shortcuts

The --profile-directory switch needs just the base name of the profile
and does not work with the full path.

BUG=136149
TEST=Check that creating shortcuts for apps (e.g. Scratchpad) creates shortcuts
that work.


Review URL: https://chromiumcodereview.appspot.com/10698113

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145571 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
index ee27074c..519ded7 100644
--- a/chrome/browser/shell_integration.cc
+++ b/chrome/browser/shell_integration.cc
@@ -76,7 +76,8 @@
     new_cmd_line.AppendSwitchPath(switches::kLoginProfile, profile);
 #else
   if (!profile_path.empty() && !extension_app_id.empty())
-    new_cmd_line.AppendSwitchPath(switches::kProfileDirectory, profile_path);
+    new_cmd_line.AppendSwitchPath(switches::kProfileDirectory,
+                                  profile_path.BaseName());
 #endif
 
   // If |extension_app_id| is present, we use the kAppId switch rather than