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

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 rebasing 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
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_utils.cc ('k') | components/arc.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5c19ec22ea991531feb3270e165feabea3d58003..ae4fedff43abdab53bece8d7ec2af0bf91407491 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_lookup.h"
@@ -212,15 +214,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;
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_utils.cc ('k') | components/arc.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698