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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 2668153002: Revert of Move more utility functions to arc_util. (Closed)
Patch Set: 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/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index b8483264a17692c99ec7ac53667dde910fc9bc3e..3490fe533c87e63d932622dfeca69f3d4ffcb867 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -124,7 +124,6 @@
#include "chrome/browser/browser_process_platform_part.h"
#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
#include "chrome/browser/chromeos/arc/arc_session_manager.h"
-#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h"
#include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
#include "chrome/browser/chromeos/net/wake_on_wifi_manager.h"
@@ -141,7 +140,7 @@
#include "chromeos/chromeos_switches.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/power_manager_client.h"
-#include "components/arc/arc_util.h"
+#include "components/arc/arc_bridge_service.h"
#include "components/user_manager/user.h"
#include "components/user_manager/user_manager.h"
#include "ui/gfx/image/image_skia.h"
@@ -1167,8 +1166,8 @@
chromeos::WallpaperManager::Get()->IsPolicyControlled(
user->GetAccountId()));
- if (arc::IsArcAllowedForProfile(profile) &&
- !arc::IsArcOptInVerificationDisabled()) {
+ if (arc::ArcSessionManager::IsAllowedForProfile(profile) &&
+ !arc::ArcSessionManager::IsOptInVerificationDisabled()) {
base::FundamentalValue is_arc_enabled(
arc::ArcSessionManager::Get()->IsArcEnabled());
web_ui()->CallJavascriptFunctionUnsafe(
@@ -2006,7 +2005,7 @@
const base::ListValue* args) {
Profile* profile = Profile::FromWebUI(web_ui());
// Settings in secondary profile cannot access ARC.
- if (!arc::IsArcAllowedForProfile(profile)) {
+ if (!arc::ArcSessionManager::IsAllowedForProfile(profile)) {
LOG(ERROR) << "Settings can't be invoked for non-primary profile";
return;
}
@@ -2025,7 +2024,7 @@
const base::ListValue *args) {
Profile* profile = Profile::FromWebUI(web_ui());
// Settings in secondary profile cannot access ARC.
- if (!arc::IsArcAllowedForProfile(profile)) {
+ if (!arc::ArcSessionManager::IsAllowedForProfile(profile)) {
LOG(WARNING) << "Settings can't be invoked for non-primary profile";
return;
}
« no previous file with comments | « chrome/browser/ui/extensions/app_launch_params.cc ('k') | chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698