#endif
}
+void App::SetAppUserModelId(const std::string& app_id) {
+#if defined(OS_WIN)
+ base::string16 app_id_utf16 = base::UTF8ToUTF16(app_id);
+ SetCurrentProcessExplicitAppUserModelID(app_id_utf16.c_str());
+#endif
+}
+
mate::ObjectTemplateBuilder App::GetObjectTemplateBuilder(
v8::Isolate* isolate) {
auto browser = base::Unretained(Browser::Get());
.SetMethod("getPath", &App::GetPath)
.SetMethod("resolveProxy", &App::ResolveProxy)
.SetMethod("setDesktopName", &App::SetDesktopName);
+ .SetMethod("setAppUserModelId", &App::SetAppUserModelId);
}
// static
void ResolveProxy(const GURL& url, ResolveProxyCallback callback);
void SetDesktopName(const std::string& desktop_name);
+ void SetAppUserModelId(const std::string& app_id);
DISALLOW_COPY_AND_ASSIGN(App);
};