win: Set app user model ID

This ID is used by Windows to identify your application.
This commit is contained in:
Cheng Zhao 2014-11-17 15:55:49 +08:00
parent 78322b5231
commit 528f7bd45f
3 changed files with 24 additions and 1 deletions

View file

@ -70,6 +70,10 @@ std::string Browser::GetName() const {
void Browser::SetName(const std::string& name) {
name_override_ = name;
#if defined(OS_WIN)
SetAppUserModelID(name);
#endif
}
bool Browser::OpenFile(const std::string& file_path) {