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

Side by Side Diff: chrome/browser/policy/browser_policy_connector.h

Issue 6821045: Connect enrollment screen to cloud policy subsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests... Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // outside ChromeOS). 47 // outside ChromeOS).
48 CloudPolicySubsystem* cloud_policy_subsystem() { 48 CloudPolicySubsystem* cloud_policy_subsystem() {
49 return cloud_policy_subsystem_.get(); 49 return cloud_policy_subsystem_.get();
50 } 50 }
51 51
52 static void RegisterPrefs(PrefService* user_prefs); 52 static void RegisterPrefs(PrefService* user_prefs);
53 53
54 // Used to set the credentials stored in the identity strategy associated 54 // Used to set the credentials stored in the identity strategy associated
55 // with this policy connector. 55 // with this policy connector.
56 void SetCredentials(const std::string& owner_email, 56 void SetCredentials(const std::string& owner_email,
57 const std::string& gaia_token, 57 const std::string& gaia_token);
58 const std::string& machine_id);
59 58
60 // Returns true if this device is managed by an enterprise (as opposed to 59 // Returns true if this device is managed by an enterprise (as opposed to
61 // a local owner). 60 // a local owner).
62 bool IsEnterpriseManaged(); 61 bool IsEnterpriseManaged();
63 62
64 // Exposes the StopAutoRetry() method of the CloudPolicySubsystem managed 63 // Exposes the StopAutoRetry() method of the CloudPolicySubsystem managed
65 // by this connector, which can be used to disable automatic 64 // by this connector, which can be used to disable automatic
66 // retrying behavior. 65 // retrying behavior.
67 void StopAutoRetry(); 66 void StopAutoRetry();
68 67
(...skipping 28 matching lines...) Expand all
97 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; 96 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_;
98 97
99 NotificationRegistrar registrar_; 98 NotificationRegistrar registrar_;
100 99
101 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 100 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
102 }; 101 };
103 102
104 } // namespace policy 103 } // namespace policy
105 104
106 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 105 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/enterprise_enrollment_view.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698