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

Unified Diff: base/win/win_util.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: string16 to FilePath where appropriate 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: base/win/win_util.cc
diff --git a/base/win/win_util.cc b/base/win/win_util.cc
index 55a4c3c334f071a0cfe279559facbea4852900d2..37aae276d171cab66f4754c14ce3ef4ec4ac37e2 100644
--- a/base/win/win_util.cc
+++ b/base/win/win_util.cc
@@ -175,13 +175,17 @@ bool SetAppIdForPropertyStore(IPropertyStore* property_store,
app_id);
}
-bool SetDualModeForPropertyStore(IPropertyStore* property_store) {
+bool SetDualModeForPropertyStore(IPropertyStore* property_store,
+ bool is_dual_mode) {
return SetBooleanValueForPropertyStore(property_store,
PKEY_AppUserModel_DualMode,
- true) &&
+ is_dual_mode) &&
+ // TODO (gab): This property no longer exists in the final Win8 release
+ // and should be deleted from all shortcuts as it could interfere with
+ // a future (Win9+) property.
SetUInt32ValueForPropertyStore(property_store,
PKEY_AppUserModel_DualMode_UK,
- 1U);
+ is_dual_mode ? 1U : 0U);
}
static const char16 kAutoRunKeyPath[] =

Powered by Google App Engine
This is Rietveld 408576698