summaryrefslogtreecommitdiffstats
path: root/ash/shell
diff options
context:
space:
mode:
authormerkulova@chromium.org <merkulova@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-31 12:24:09 +0000
committermerkulova@chromium.org <merkulova@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-31 12:24:09 +0000
commit5ecf612f9ad4b992b54bb710795e57c5d26012e7 (patch)
tree6222ffcc0460ecccbe8b0960ed81fc1f71f6bc68 /ash/shell
parent6b375af3e3b3ea3000ab20caa6f1ee0e5596ba93 (diff)
downloadchromium_src-5ecf612f9ad4b992b54bb710795e57c5d26012e7.zip
chromium_src-5ecf612f9ad4b992b54bb710795e57c5d26012e7.tar.gz
chromium_src-5ecf612f9ad4b992b54bb710795e57c5d26012e7.tar.bz2
Check for incognito-mode availabilty added.
BUG=279953 Review URL: https://codereview.chromium.org/34903002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232096 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell')
-rw-r--r--ash/shell/shell_delegate_impl.cc4
-rw-r--r--ash/shell/shell_delegate_impl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index e1ca903..e414419 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -71,6 +71,10 @@ bool ShellDelegateImpl::IsFirstRunAfterBoot() const {
return false;
}
+bool ShellDelegateImpl::IsIncognitoAllowed() const {
+ return true;
+}
+
bool ShellDelegateImpl::IsMultiProfilesEnabled() const {
return false;
}
diff --git a/ash/shell/shell_delegate_impl.h b/ash/shell/shell_delegate_impl.h
index 647331e..544eef9 100644
--- a/ash/shell/shell_delegate_impl.h
+++ b/ash/shell/shell_delegate_impl.h
@@ -28,6 +28,7 @@ class ShellDelegateImpl : public ash::ShellDelegate {
void SetWatcher(WindowWatcher* watcher);
virtual bool IsFirstRunAfterBoot() const OVERRIDE;
+ virtual bool IsIncognitoAllowed() const OVERRIDE;
virtual bool IsMultiProfilesEnabled() const OVERRIDE;
virtual bool IsRunningInForcedAppMode() const OVERRIDE;
virtual void PreInit() OVERRIDE;