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

Unified Diff: chromeos/dbus/blocking_method_caller.h

Issue 2801993002: Abandon user sign in when policy is retrieved before session started (Closed)
Patch Set: Fixed review comments Created 3 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
Index: chromeos/dbus/blocking_method_caller.h
diff --git a/chromeos/dbus/blocking_method_caller.h b/chromeos/dbus/blocking_method_caller.h
index c70c6748940238cceab1d200afe9c31d59adc1e8..6dad566d9ccc59c8eb6fe2c6f4d215c7563438b3 100644
--- a/chromeos/dbus/blocking_method_caller.h
+++ b/chromeos/dbus/blocking_method_caller.h
@@ -14,6 +14,7 @@ namespace dbus {
class Bus;
class ObjectProxy;
+class ScopedDBusError;
} // namespace dbus
@@ -31,6 +32,12 @@ class CHROMEOS_EXPORT BlockingMethodCaller {
std::unique_ptr<dbus::Response> CallMethodAndBlock(
dbus::MethodCall* method_call);
+ // Calls the method and blocks until it returns. Populates the |error| and
+ // returns null in case of an error.
+ std::unique_ptr<dbus::Response> CallMethodAndBlockWithError(
+ dbus::MethodCall* method_call,
+ dbus::ScopedDBusError* error_out);
+
private:
dbus::Bus* bus_;
dbus::ObjectProxy* proxy_;
« no previous file with comments | « chrome/browser/chromeos/settings/session_manager_operation.cc ('k') | chromeos/dbus/blocking_method_caller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698