electron/shell/browser/notifications
Charles Kerr b428315c6d
perf: remove unnecessary .c_str() calls (#41869)
* perf: remove unnecessary c_str() call when invoking promise.RejectWithErrorMessage()

RejectWithErrorMessage() takes a std::string_view

* perf: remove unnecessary c_str() call when invoking Environment::SetVar()

the val arg to Environment::SetVar() takes a const std::string&

* refactor: use string_view variant of base::UTF8ToWide()

* perf: remove unnecessary c_str() call when instantiating a ScopedHString

ScopedHString has always taken a StringPiece

* refactor: use simpler invocation of base::make_span()

* perf: remove unnecessary c_str() call when calling base::CommandLine::HasSwitch()

HasSwitch() already takes a string_piece

* perf: remove unnecessary c_str() call when calling net::HttpResponseHeaders::AddHeader()

AddHeader() already takes a StringPiece arg

* perf: omit unnecessary str -> wstr -> str conversion in DesktopCapturer::UpdateSourcesList()

this conversion was made redundant by c670e38
2024-04-16 19:48:54 -04:00
..
linux fix: don't do self-destroy in LibnotifyNotification::Dismiss() (#41691) 2024-03-27 10:53:23 +01:00
mac chore: bump chromium to 122.0.6236.2 (main) (#40871) 2024-01-11 19:33:40 +13:00
win perf: remove unnecessary .c_str() calls (#41869) 2024-04-16 19:48:54 -04:00
notification.cc fix: Windows Toast notification dismissal from Action Center (#40197) 2023-10-17 19:33:00 -04:00
notification.h fix: Windows Toast notification dismissal from Action Center (#40197) 2023-10-17 19:33:00 -04:00
notification_delegate.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
notification_presenter.cc
notification_presenter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
platform_notification_service.cc chore: bump chromium to 119.0.6043.0 (main) (#40045) 2023-10-02 18:01:07 -04:00
platform_notification_service.h chore: bump chromium to 119.0.6043.0 (main) (#40045) 2023-10-02 18:01:07 -04:00