Linux named notifications (#12192)

* Set name & desktop-entry on Linux notifications

* DBusMock now honors verbose mode flag

* Disable DBus Notification tests on ia32
This commit is contained in:
Charles Kerr 2018-03-12 09:33:06 +09:00 committed by GitHub
parent 9d090e00f2
commit 86af20ded0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 163 additions and 14 deletions

View file

@ -47,10 +47,7 @@ PCWSTR GetRawAppUserModelID() {
if (SUCCEEDED(GetCurrentProcessExplicitAppUserModelID(&current_app_id))) {
g_app_user_model_id = current_app_id;
} else {
std::string name = GetOverriddenApplicationName();
if (name.empty()) {
name = GetApplicationName();
}
std::string name = GetApplicationName();
base::string16 generated_app_id = base::ReplaceStringPlaceholders(
kAppUserModelIDFormat, base::UTF8ToUTF16(name), nullptr);
SetAppUserModelID(generated_app_id);