commit | 44fcf990643fc5b0071c6f0b7dc6e4b7b319b8b5 | [log] [tgz] |
---|---|---|
author | Arthur Milchior <[email protected]> | Fri May 10 17:05:58 2024 |
committer | Chromium LUCI CQ <[email protected]> | Fri May 10 17:05:58 2024 |
tree | 8947f62af0242371b708c038e98c7c50824b098f | |
parent | 4cf73272c6ef081497e88b7299402c7fc88319f9 [diff] [blame] |
Implement the non-deprecated builder. Any class inheriting `BrowserContextKeyedServiceFactory` should implement either `BuildServiceInstanceForBrowserContext` or `BuildServiceInstanceFor`. The second one was deprecated, this CL replaces it with the first one. Bug: 1396138 Change-Id: I121117a2bd196914d2854b770b944c0225fe4684 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4798396 Reviewed-by: Jack Hsieh <[email protected]> Commit-Queue: Jack Hsieh <[email protected]> Auto-Submit: Arthur Milchior <[email protected]> Cr-Commit-Position: refs/heads/main@{#1299326}
diff --git a/chrome/browser/usb/usb_chooser_context_factory.h b/chrome/browser/usb/usb_chooser_context_factory.h index 31dad47..746e6e7 100644 --- a/chrome/browser/usb/usb_chooser_context_factory.h +++ b/chrome/browser/usb/usb_chooser_context_factory.h
@@ -27,7 +27,7 @@ ~UsbChooserContextFactory() override; // BrowserContextKeyedServiceFactory methods: - KeyedService* BuildServiceInstanceFor( + std::unique_ptr<KeyedService> BuildServiceInstanceForBrowserContext( content::BrowserContext* profile) const override; void BrowserContextShutdown(content::BrowserContext* context) override; };