Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: system_utils.h

Issue 6815021: [login_manager] Code to add the owner to the whitelist in a device policy (Closed) Base URL:
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 | « ('k') | » ('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 @@
+#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);
// If this file exists on the next boot, the stateful partition will be wiped.
static const char kResetFile[];
« no previous file with comments | « ('k') | » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698