perf: cache whether or not ELECTRON_DEBUG_NOTIFICATIONS env var is set (#45143)
* perf: cache whether or not ELECTRON_DEBUG_NOTIFICATIONS env var is set * chore: remove unused #include
This commit is contained in:
parent
59ed1db9a2
commit
062d14e553
7 changed files with 12 additions and 12 deletions
|
@ -4,11 +4,15 @@
|
|||
|
||||
#include "shell/browser/notifications/notification.h"
|
||||
|
||||
#include "base/environment.h"
|
||||
#include "shell/browser/notifications/notification_delegate.h"
|
||||
#include "shell/browser/notifications/notification_presenter.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
const bool debug_notifications =
|
||||
base::Environment::Create()->HasVar("ELECTRON_DEBUG_NOTIFICATIONS");
|
||||
|
||||
NotificationOptions::NotificationOptions() = default;
|
||||
NotificationOptions::~NotificationOptions() = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue