Win 8 Start Menu shortcut changes


BUG=119242
TEST=Test DualModeApp properties are correctly set in Windows 8 on Start Menu shortcut.

Review URL: http://codereview.chromium.org/9837120

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131163 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 2e1a4a80ce1c1f986beb6d9ab38bb1a166ccb6d8
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
index 4542af4..30db82c 100644
--- a/base/file_util_unittest.cc
+++ b/base/file_util_unittest.cc
@@ -1458,16 +1458,17 @@
 }
 
 TEST_F(FileUtilTest, CreateShortcutTest) {
-  const wchar_t file_contents[] = L"This is another target.";
+  const wchar_t* file_contents = L"This is another target.";
   FilePath target_file = temp_dir_.path().Append(L"Target1.txt");
   CreateTextFile(target_file, file_contents);
 
   FilePath link_file = temp_dir_.path().Append(L"Link1.lnk");
 
   CoInitialize(NULL);
-  EXPECT_TRUE(file_util::CreateShortcutLink(target_file.value().c_str(),
-                                            link_file.value().c_str(),
-                                            NULL, NULL, NULL, NULL, 0, NULL));
+  EXPECT_TRUE(file_util::CreateOrUpdateShortcutLink(
+                  target_file.value().c_str(), link_file.value().c_str(), NULL,
+                  NULL, NULL, NULL, 0, NULL,
+                  file_util::SHORTCUT_CREATE_ALWAYS));
   FilePath resolved_name = link_file;
   EXPECT_TRUE(file_util::ResolveShortcut(&resolved_name));
   std::wstring read_contents = ReadTextFile(resolved_name);