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

Unified Diff: session_manager_service.h

Issue 6815021: [login_manager] Code to add the owner to the whitelist in a device policy (Closed) Base URL: http://git.chromium.org/git/login_manager.git@master
Patch Set: address gauravsh comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « owner_key.cc ('k') | session_manager_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: session_manager_service.h
diff --git a/session_manager_service.h b/session_manager_service.h
index 6f4fba4e721801c4cc8c7cf501d2dc62b5f311ef..46f772ca298eb1274fbccd7adefa49a3b35c4e2d 100644
--- a/session_manager_service.h
+++ b/session_manager_service.h
@@ -374,23 +374,12 @@ class SessionManagerService
// |data| is a SessionManagerService*
static gboolean ServiceShutdown(gpointer data);
- // Initializes |error| with |code| and |message|.
- static void SetGError(GError** error,
- ChromeOSLoginError code,
- const char* message);
-
- // Initializes |error| with |code| and |message|.
- static void SetAndSendGError(ChromeOSLoginError code,
- DBusGMethodInvocation* context,
- const char* message);
-
// Setup any necessary signal handlers.
void SetupHandlers();
// Returns true if the current user is listed in |store_| as the
// kDeviceOwner. Returns false if not, or if that cannot be determined.
- // |error| is set appropriately on failure.
- gboolean CurrentUserIsOwner(GError** error);
+ gboolean CurrentUserIsOwner();
// Returns true if the current user has the private half of |pub_key|
// in his nssdb. Returns false if not, or if that cannot be determined.
@@ -415,6 +404,7 @@ class SessionManagerService
// property indicating |current_user_| is the owner, and schedules both
// a PersistWhitelist() and a PersistStore().
// Returns false on failure, with |error| set appropriately.
+ // |error| can be NULL, should you wish to ignore the particulars.
gboolean StoreOwnerProperties(GError** error);
// Signs and stores |name|=|value|, and schedules a PersistStore().
« no previous file with comments | « owner_key.cc ('k') | session_manager_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698