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

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

Issue 2648213004: Migrate --enable-arc and --arc-available part 1. (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/ui/app_list/arc/arc_app_test.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_test.cc b/chrome/browser/ui/app_list/arc/arc_app_test.cc
index 0d21c988032617f7a7fbf1b3c439e12c2b11c2dc..a7935a8a258b8e2c772c11234993daa6a65abc07 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_test.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_test.cc
@@ -15,11 +15,11 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
#include "chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.h"
-#include "chromeos/chromeos_switches.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service_manager.h"
#include "components/arc/arc_session_runner.h"
+#include "components/arc/arc_util.h"
#include "components/arc/test/fake_app_instance.h"
#include "components/arc/test/fake_arc_session.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -60,8 +60,8 @@ void ArcAppTest::SetUp(Profile* profile) {
chromeos::DBusThreadManager::Initialize();
dbus_thread_manager_initialized_ = true;
}
- base::CommandLine::ForCurrentProcess()->AppendSwitch(
- chromeos::switches::kEnableArc);
+ arc::SetArcAvailableCommandLineForTesting(
+ base::CommandLine::ForCurrentProcess());
DCHECK(!profile_);
profile_ = profile;
const user_manager::User* user = CreateUserAndLogin();

Powered by Google App Engine
This is Rietveld 408576698