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

Unified Diff: system_utils.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 | « session_manager_unittest.cc ('k') | system_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: system_utils.h
diff --git a/system_utils.h b/system_utils.h
index cd4479b0c806b2a77ab0efc815b7961d39da1658..3369ddce5122bc8e1b9e47d92619c82161c2e4f8 100644
--- a/system_utils.h
+++ b/system_utils.h
@@ -5,11 +5,15 @@
#ifndef LOGIN_MANAGER_SYSTEM_UTILS_H_
#define LOGIN_MANAGER_SYSTEM_UTILS_H_
+#include <dbus/dbus.h>
+#include <dbus/dbus-glib.h>
+#include <glib.h>
#include <unistd.h>
#include <string>
#include <base/basictypes.h>
#include <base/stringprintf.h>
+#include <chromeos/dbus/service_constants.h>
class FilePath;
@@ -62,6 +66,16 @@ class SystemUtils {
// persisted across stateful partition wipes.
virtual void AppendToClobberLog(const char* msg) const;
+ // Initializes |error| with |code| and |message|.
+ virtual void SetGError(GError** error,
+ ChromeOSLoginError code,
+ const char* message);
+
+ // Initializes |error| with |code| and |message|.
+ virtual void SetAndSendGError(ChromeOSLoginError code,
+ DBusGMethodInvocation* context,
+ const char* message);
+
private:
// If this file exists on the next boot, the stateful partition will be wiped.
static const char kResetFile[];
« no previous file with comments | « session_manager_unittest.cc ('k') | system_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698