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

Unified Diff: chrome/browser/policy/browser_policy_connector.h

Issue 9403010: Add support for kiosk mode on the client. Make sure the settings are written in the lockbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nitty nit. Created 8 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
Index: chrome/browser/policy/browser_policy_connector.h
diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h
index ef9848267e57ee6bc2a18c14d8836bd09f2a5707..7dff5a394255f66d4be234ec31fa2fb5a53a3b48 100644
--- a/chrome/browser/policy/browser_policy_connector.h
+++ b/chrome/browser/policy/browser_policy_connector.h
@@ -93,6 +93,12 @@ class BrowserPolicyConnector : public content::NotificationObserver {
// Returns the enterprise domain if device is managed.
std::string GetEnterpriseDomain();
+ // Returns the device mode. For ChromeOS this function will return the mode
+ // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been
+ // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet.
+ // For other OSes the function will always return DEVICE_MODE_CONSUMER.
+ DeviceMode GetDeviceMode();
+
// Reset the device policy machinery. This stops any automatic retry behavior
// and clears the error flags, so potential retries have a chance to succeed.
void ResetDevicePolicy();
@@ -124,8 +130,10 @@ class BrowserPolicyConnector : public content::NotificationObserver {
// isn't being used.
void RegisterForUserPolicy(const std::string& oauth_token);
- const CloudPolicyDataStore* GetDeviceCloudPolicyDataStore() const;
- const CloudPolicyDataStore* GetUserCloudPolicyDataStore() const;
+ // The data stores should be considered read-only for everyone except for
+ // tests.
+ CloudPolicyDataStore* GetDeviceCloudPolicyDataStore();
+ CloudPolicyDataStore* GetUserCloudPolicyDataStore();
const ConfigurationPolicyHandlerList* GetHandlerList() const;
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698