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

Unified Diff: chrome/browser/shell_integration_win.cc

Issue 10914109: Refactoring and tests for the highly undertested file_util::CreateOrUpdateShortcutLink() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: always use both LongPathName and ShortPathName when verifying paths Created 8 years, 3 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/shell_integration_win.cc
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index 97dae75806498acaffa93f9fe612a14b9a903acc..a4dbd819faf917f4bf1570b104b540ecc9e94c73 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -336,10 +336,11 @@ void MigrateWin7ShortcutsInPath(
GetShortcutAppId(shell_link, &existing_app_id);
if (expected_app_id != existing_app_id) {
- file_util::CreateOrUpdateShortcutLink(NULL, shortcut.value().c_str(),
- NULL, NULL, NULL, NULL, 0,
- expected_app_id.c_str(),
- file_util::SHORTCUT_NO_OPTIONS);
+ file_util::ShortcutProperties properties_app_id_only;
+ properties_app_id_only.set_app_id(expected_app_id);
+ file_util::CreateOrUpdateShortcutLink(
+ shortcut.value().c_str(), properties_app_id_only,
+ file_util::SHORTCUT_UPDATE_EXISTING);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698