Hi,
We didn’t really define the user agent of Crosswalk so far. We all know that
user-agent are evil, blablabla, however we can’t force the entire planet to
follow good coding practices. Today it’s defined like that :
std::string XWalkContentClient::GetUserAgent() const {
// TODO(hmin): Define user agent for xwalk.
std::string product = "Chrome/" XWALK_VERSION;
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kUseMobileUserAgent))
product += " Mobile";
return webkit_glue::BuildUserAgentFromProduct(product);
}
where XWALK_VERSION is for example 1.29.4.0.
I believe we should probably put « crosswalk » somewhere no?
Ideas?
Software Engineer @
Intel Open Source Technology Center
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev