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

Unified Diff: chrome/browser/chromeos/note_taking_helper.cc

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: address comments Created 3 years, 11 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/note_taking_helper.cc
diff --git a/chrome/browser/chromeos/note_taking_helper.cc b/chrome/browser/chromeos/note_taking_helper.cc
index 95c7594d6d2d14368abd0235351ca5e1bd413718..5e5b54832eafa4b31048368fda4fcaed145bd666 100644
--- a/chrome/browser/chromeos/note_taking_helper.cc
+++ b/chrome/browser/chromeos/note_taking_helper.cc
@@ -19,6 +19,7 @@
#include "base/strings/string_split.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/chromeos/file_manager/path_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -122,7 +123,7 @@ NoteTakingAppInfos NoteTakingHelper::GetAvailableApps(Profile* profile) {
for (const auto& app : chrome_apps)
infos.push_back(NoteTakingAppInfo{app->name(), app->id(), false});
- if (arc::ArcSessionManager::Get()->IsAllowedForProfile(profile))
+ if (arc::IsArcAllowedForProfile(profile))
infos.insert(infos.end(), android_apps_.begin(), android_apps_.end());
// Determine which app, if any, is preferred.
@@ -324,7 +325,7 @@ NoteTakingHelper::LaunchResult NoteTakingHelper::LaunchAppInternal(
if (LooksLikeAndroidPackageName(app_id)) {
// Android app.
- if (!arc::ArcSessionManager::Get()->IsAllowedForProfile(profile)) {
+ if (!arc::IsArcAllowedForProfile(profile)) {
LOG(WARNING) << "Can't launch Android app " << app_id << " for profile";
return LaunchResult::ANDROID_NOT_SUPPORTED_BY_PROFILE;
}
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698