#if defined(OS_WIN)
#include "ui/gfx/switches.h"
+#include <shlobj.h>
#endif
using content::NavigationEntry;
command_line->AppendSwitchASCII(switches::kZoomFactor,
base::DoubleToString(zoom_factor_));
+#if defined(OS_WIN)
+ PWSTR explicit_app_id;
+
+ if (SUCCEEDED(GetCurrentProcessExplicitAppUserModelID(&explicit_app_id))) {
+ base::string16 appId = base::string16(explicit_app_id);
+ command_line->AppendSwitchNative(switches::kAppUserModelId, appId);
+ CoTaskMemFree(explicit_app_id);
+ }
+#endif
+
if (web_preferences_.IsEmpty())
return;