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

Unified Diff: chrome/browser/chromeos/file_manager/arc_file_tasks.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
Index: chrome/browser/chromeos/file_manager/arc_file_tasks.cc
diff --git a/chrome/browser/chromeos/file_manager/arc_file_tasks.cc b/chrome/browser/chromeos/file_manager/arc_file_tasks.cc
index e16e6e5a1149c76a5489b6138bb4af1f0c82f71f..4efc3b098f53aef831f0e14c3c5c21f03aedd850 100644
--- a/chrome/browser/chromeos/file_manager/arc_file_tasks.cc
+++ b/chrome/browser/chromeos/file_manager/arc_file_tasks.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/file_manager/arc_file_tasks.h"
+#include <map>
#include <memory>
#include <string>
#include <vector>
@@ -52,7 +53,7 @@ constexpr char kPngDataUrlPrefix[] = "data:image/png;base64,";
// Returns the Mojo interface for ARC Intent Helper, with version |minVersion|
// or above. If the ARC bridge is not established, returns null.
arc::mojom::IntentHelperInstance* GetArcIntentHelper(Profile* profile,
- int min_version) {
+ uint32_t min_version) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
// File manager in secondary profile cannot access ARC.
@@ -64,11 +65,11 @@ arc::mojom::IntentHelperInstance* GetArcIntentHelper(Profile* profile,
return nullptr;
arc::mojom::IntentHelperInstance* intent_helper_instance =
- arc_service->intent_helper_instance();
+ arc_service->intent_helper()->instance();
if (!intent_helper_instance)
return nullptr;
- if (arc_service->intent_helper_version() < min_version) {
+ if (arc_service->intent_helper()->version() < min_version) {
DLOG(WARNING) << "ARC intent helper instance is too old.";
return nullptr;
}
« no previous file with comments | « chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc ('k') | chrome/browser/memory/tab_manager_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698