electron/shell/browser/extensions/api/management
trop[bot] 5b90ce2290
refactor: follow upstream's suggestions on when to use EmptyGURL() (#45521)
- Prefer GURL() when we want to return a non-reference empty URL.

- In ServiceWorkerMain::GetStorageKey(), use a reference instead
  of instantiating a new temporary GURL.

From url/gurl.h:

> // Returns a reference to a singleton empty GURL. This object is for
> // callers who return references but don't have anything to return in
> // some cases. If you just want an empty URL for normal use, prefer
> // GURL().

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2025-02-13 11:30:40 +01:00
..
electron_management_api_delegate.cc refactor: follow upstream's suggestions on when to use EmptyGURL() (#45521) 2025-02-13 11:30:40 +01:00
electron_management_api_delegate.h chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00