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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.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
Index: chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc b/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc
index 5ec2d5b4672df251e197b820d1d81b0e7d633516..1907b01d447a89dd5568834dab7f39a908083e06 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc
@@ -9,6 +9,8 @@
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/chromeos/arc/arc_session_manager.h"
+#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/ui/app_list/app_list_service.h"
#include "chrome/browser/ui/app_list/app_list_syncable_service.h"
@@ -166,7 +168,7 @@ class ArcAppLauncherBrowserTest : public ExtensionBrowserTest {
}
void SetUpOnMainThread() override {
- arc::ArcSessionManager::Get()->SetArcPlayStoreEnabled(true);
+ arc::SetArcPlayStoreEnabledForProfile(profile(), true);
}
void InstallTestApps(const std::string& package_name, bool multi_app) {
@@ -545,6 +547,6 @@ IN_PROC_BROWSER_TEST_F(ArcAppLauncherBrowserTest, ShelfGroup) {
EXPECT_FALSE(GetAppItemController(shelf_id2));
// Disable ARC, this removes app and as result kills shelf group 3.
- arc::ArcSessionManager::Get()->SetArcPlayStoreEnabled(false);
+ arc::SetArcPlayStoreEnabledForProfile(profile(), false);
EXPECT_FALSE(GetAppItemController(shelf_id3));
}

Powered by Google App Engine
This is Rietveld 408576698