Introduce way to check if there is an off-the-record session active.
commitb070e1cc073c2c78a29f2c39177140c245660169
authorsdefresne <sdefresne@chromium.org>
Mon, 21 Sep 2015 13:50:38 +0000 (21 06:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 21 Sep 2015 13:51:05 +0000 (21 13:51 +0000)
tree903e3879222c0a80dd7e22c895a1df3c31460341
parenta8482d15258ce570e853bde6f8f65595bc9d4641
Introduce way to check if there is an off-the-record session active.

Introduce a new function IsOffTheRecordSessionActive() that returns
true if there is an off-the-record session active. It is equivalent
to chrome::IsOffTheRecordSessionActive() but for Chrome on iOS.

Implement it via ChromeBrowserProvider.

BUG=228186

Review URL: https://codereview.chromium.org/1360593002

Cr-Commit-Position: refs/heads/master@{#349925}
ios/chrome/browser/ui/browser_otr_state.h [new file with mode: 0644]
ios/chrome/browser/ui/browser_otr_state.mm [new file with mode: 0644]
ios/chrome/ios_chrome.gyp
ios/public/provider/chrome/browser/chrome_browser_provider.cc
ios/public/provider/chrome/browser/chrome_browser_provider.h