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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_unittest.cc

Issue 2702723002: Extract kArcEnabled preference from ArcSessionManager part 1. (Closed)
Patch Set: Address comments. Created 3 years, 10 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_test.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/arc/arc_app_unittest.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_unittest.cc b/chrome/browser/ui/app_list/arc/arc_app_unittest.cc
index 2df2baa61e072e9f1899223fb0f3d9a3af8c3fe6..505ca0f0392961c52c8ae8f8eaa63fa13c410dfe 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_unittest.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_unittest.cc
@@ -19,6 +19,7 @@
#include "base/threading/sequenced_worker_pool.h"
#include "base/values.h"
#include "chrome/browser/chromeos/arc/arc_support_host.h"
+#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/browser/policy/profile_policy_connector_factory.h"
@@ -997,14 +998,14 @@ TEST_F(ArcPlayStoreAppTest, PlayStore) {
ASSERT_TRUE(app_info);
EXPECT_TRUE(app_info->ready);
- arc_test()->arc_session_manager()->SetArcPlayStoreEnabled(false);
+ arc::SetArcPlayStoreEnabledForProfile(profile(), false);
app_info = prefs->GetApp(arc::kPlayStoreAppId);
ASSERT_TRUE(app_info);
EXPECT_FALSE(app_info->ready);
arc::LaunchApp(profile(), arc::kPlayStoreAppId, ui::EF_NONE);
- EXPECT_TRUE(arc_test()->arc_session_manager()->IsArcPlayStoreEnabled());
+ EXPECT_TRUE(arc::IsArcPlayStoreEnabledForProfile(profile()));
}
// Test that icon is correctly extracted for shelf group.
@@ -1263,7 +1264,7 @@ TEST_F(ArcDefaulAppTest, DefaultApps) {
ValidateHaveApps(all_apps);
// OptOut and default apps should exist minus first.
- arc_test()->arc_session_manager()->SetArcPlayStoreEnabled(false);
+ arc::SetArcPlayStoreEnabledForProfile(profile(), false);
all_apps = fake_default_apps();
all_apps.erase(all_apps.begin());
ValidateHaveApps(all_apps);
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_test.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698