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

Unified Diff: chromeos/dbus/blocking_method_caller.h

Issue 2801993002: Abandon user sign in when policy is retrieved before session started (Closed)
Patch Set: Nits 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..45486be28f8e8f001e5127971b114082134482a4 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);
Daniel Erat 2017/04/20 21:06:38 error_out
igorcov 2017/04/21 11:36:21 Done.
+
private:
dbus::Bus* bus_;
dbus::ObjectProxy* proxy_;

Powered by Google App Engine
This is Rietveld 408576698