diff options
author | kelvinp <kelvinp@chromium.org> | 2015-09-30 18:22:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-01 01:22:51 +0000 |
commit | 1b80b8f3228141bcea73fbd5c4d2fb62114e5110 (patch) | |
tree | b531bfcb950377e4e70ce3cb0ca7534394a25a66 /extensions/shell | |
parent | 3c339c407958603390d6a1b4f0b86bd0044bdbb3 (diff) | |
download | chromium_src-1b80b8f3228141bcea73fbd5c4d2fb62114e5110.zip chromium_src-1b80b8f3228141bcea73fbd5c4d2fb62114e5110.tar.gz chromium_src-1b80b8f3228141bcea73fbd5c4d2fb62114e5110.tar.bz2 |
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}
Diffstat (limited to 'extensions/shell')
-rw-r--r-- | extensions/shell/browser/shell_extensions_browser_client.cc | 4 | ||||
-rw-r--r-- | extensions/shell/browser/shell_extensions_browser_client.h | 1 |
2 files changed, 5 insertions, 0 deletions
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; |