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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: more rebase Created 4 years, 5 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: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
index ecdc85634bae89d0f0ff418bdb6756deec5b69ba..275aa01b202e02b6640eb445dc3d36e137298eed 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h"
+#include <string>
+
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_shell.h"
@@ -188,15 +190,15 @@ class ArcAppWindowLauncherController::AppWindow : public ui::BaseWindow {
arc::mojom::AppInstance* GetAppInstance() {
arc::ArcBridgeService* bridge_service = arc::ArcBridgeService::Get();
arc::mojom::AppInstance* app_instance =
- bridge_service ? bridge_service->app_instance() : nullptr;
+ bridge_service ? bridge_service->app()->instance() : nullptr;
if (!app_instance) {
VLOG(2) << "Arc Bridge is not available.";
return nullptr;
}
- if (bridge_service->app_version() < 3) {
+ if (bridge_service->app()->version() < 3) {
VLOG(2) << "Arc Bridge has old version for apps."
- << bridge_service->app_version();
+ << bridge_service->app()->version();
return nullptr;
}
return app_instance;

Powered by Google App Engine
This is Rietveld 408576698