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

Unified Diff: extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h

Issue 903123002: Allow printerProvider API services in incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « extensions/browser/api/printer_provider/printer_provider_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h
diff --git a/extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h b/extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h
index ac34c5095e9810fe4ec8f5749238059a320f916a..703ffb56625987b13ab4789c1baa66201f70f2f6 100644
--- a/extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h
+++ b/extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h
@@ -46,6 +46,10 @@ class PrinterProviderInternalAPI : public BrowserContextKeyedAPI {
friend class PrinterProviderInternalReportPrinterCapabilityFunction;
friend class PrinterProviderInternalReportPrintResultFunction;
+ // BrowserContextKeyedAPI implementation.
+ static const bool kServiceRedirectedInIncognito = true;
+ static const char* service_name() { return "PrinterProviderInternal"; }
+
// Notifies observers that a printerProvider.onGetPrintersRequested callback
// has been called. Called from
// |PrinterProviderInternalReportPrintersFunction|.
@@ -68,9 +72,6 @@ class PrinterProviderInternalAPI : public BrowserContextKeyedAPI {
int request_id,
core_api::printer_provider_internal::PrintError error);
- // BrowserContextKeyedAPI implementation.
- static const char* service_name() { return "PrinterProviderInternal"; }
-
ObserverList<PrinterProviderInternalAPIObserver> observers_;
DISALLOW_COPY_AND_ASSIGN(PrinterProviderInternalAPI);
« no previous file with comments | « extensions/browser/api/printer_provider/printer_provider_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698