From 1b80b8f3228141bcea73fbd5c4d2fb62114e5110 Mon Sep 17 00:00:00 2001 From: kelvinp Date: Wed, 30 Sep 2015 18:22:13 -0700 Subject: Add public session launch flag This CL adds a flag to the launchData in chrome.runtime.app.onLaunched to indicate whether the app is being launched in a public session. BUG=508608 Review URL: https://codereview.chromium.org/1375353002 Cr-Commit-Position: refs/heads/master@{#351696} --- extensions/shell/browser/shell_extensions_browser_client.cc | 4 ++++ extensions/shell/browser/shell_extensions_browser_client.h | 1 + 2 files changed, 5 insertions(+) (limited to 'extensions/shell') diff --git a/extensions/shell/browser/shell_extensions_browser_client.cc b/extensions/shell/browser/shell_extensions_browser_client.cc index 62b2a5f..a3ec44a 100644 --- a/extensions/shell/browser/shell_extensions_browser_client.cc +++ b/extensions/shell/browser/shell_extensions_browser_client.cc @@ -159,6 +159,10 @@ bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { return false; } +bool ShellExtensionsBrowserClient::IsLoggedInAsPublicAccount() { + return false; +} + ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( BrowserContext* context) { // app_shell doesn't monitor API function calls or events. diff --git a/extensions/shell/browser/shell_extensions_browser_client.h b/extensions/shell/browser/shell_extensions_browser_client.h index 8b65ccf..8c449ee 100644 --- a/extensions/shell/browser/shell_extensions_browser_client.h +++ b/extensions/shell/browser/shell_extensions_browser_client.h @@ -67,6 +67,7 @@ class ShellExtensionsBrowserClient : public ExtensionsBrowserClient { bool DidVersionUpdate(content::BrowserContext* context) override; void PermitExternalProtocolHandler() override; bool IsRunningInForcedAppMode() override; + bool IsLoggedInAsPublicAccount() override; ApiActivityMonitor* GetApiActivityMonitor( content::BrowserContext* context) override; ExtensionSystemProvider* GetExtensionSystemFactory() override; -- cgit v1.1