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

Unified Diff: chromeos/dbus/session_manager_client.cc

Issue 2323133002: Speed up ARC boot if the user launches ARC app while ARC is not ready (Closed)
Patch Set: Fix unit_tests Created 4 years, 3 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 | « chromeos/dbus/session_manager_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/session_manager_client.cc
diff --git a/chromeos/dbus/session_manager_client.cc b/chromeos/dbus/session_manager_client.cc
index c98a7c94ba0b54d2d5dcd005f64e0ff84b1b2e31..f5014125dd1ded8ed27d84486c01a1ce7bde038d 100644
--- a/chromeos/dbus/session_manager_client.cc
+++ b/chromeos/dbus/session_manager_client.cc
@@ -8,6 +8,8 @@
#include <stdint.h>
#include <sys/socket.h>
+#include <memory>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/files/file_path.h"
@@ -369,6 +371,18 @@ class SessionManagerClientImpl : public SessionManagerClient {
login_manager::kSessionManagerStopArcInstance, callback));
}
+ void PrioritizeArcInstance(const ArcCallback& callback) override {
+ dbus::MethodCall method_call(
+ login_manager::kSessionManagerInterface,
+ login_manager::kSessionManagerPrioritizeArcInstance);
+ session_manager_proxy_->CallMethod(
+ &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
+ base::Bind(&SessionManagerClientImpl::OnArcMethod,
+ weak_ptr_factory_.GetWeakPtr(),
+ login_manager::kSessionManagerPrioritizeArcInstance,
+ callback));
+ }
+
void GetArcStartTime(const GetArcStartTimeCallback& callback) override {
dbus::MethodCall method_call(
login_manager::kSessionManagerInterface,
@@ -942,6 +956,10 @@ class SessionManagerClientStubImpl : public SessionManagerClient {
callback.Run(false);
}
+ void PrioritizeArcInstance(const ArcCallback& callback) override {
+ callback.Run(false);
+ }
+
void StopArcInstance(const ArcCallback& callback) override {
callback.Run(false);
}
« no previous file with comments | « chromeos/dbus/session_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698