Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4431)

Unified Diff: chrome/browser/chromeos/printer_detector/printer_detector_factory.h

Issue 2898833002: Allow the PrinterDetector to be constructed with a delegated profile. (Closed)
Patch Set: comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/printer_detector/printer_detector_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/printer_detector/printer_detector_factory.h
diff --git a/chrome/browser/chromeos/printer_detector/printer_detector_factory.h b/chrome/browser/chromeos/printer_detector/printer_detector_factory.h
index 252cba9d11a971cfb7f0eaf3144ef434cb554481..39e69d2c14f0f7991f4406f0158dc07251dd6dd7 100644
--- a/chrome/browser/chromeos/printer_detector/printer_detector_factory.h
+++ b/chrome/browser/chromeos/printer_detector/printer_detector_factory.h
@@ -24,11 +24,17 @@ class PrinterDetectorFactory : public BrowserContextKeyedServiceFactory {
PrinterDetector* Get(content::BrowserContext* context);
+ protected:
+ // BrowserContextKeyedServiceFactory:
+ content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* context) const override;
+
private:
friend struct base::LazyInstanceTraitsBase<PrinterDetectorFactory>;
PrinterDetectorFactory();
~PrinterDetectorFactory() override;
+ // BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* browser_context) const override;
bool ServiceIsCreatedWithBrowserContext() const override;
« no previous file with comments | « no previous file | chrome/browser/chromeos/printer_detector/printer_detector_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698