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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc

Issue 2708923013: Split ArcSessionManager::OnPrimaryUserProfilePrepared(). (Closed)
Patch Set: rebase 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 1907b01d447a89dd5568834dab7f39a908083e06..aea36ace4bb0911e119a2bc4f94c8c7f18977e4c 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc
@@ -244,8 +244,10 @@ class ArcAppLauncherBrowserTest : public ExtensionBrowserTest {
}
void StartInstance() {
- if (arc_session_manager()->profile() != profile())
- arc_session_manager()->OnPrimaryUserProfilePrepared(profile());
+ if (arc_session_manager()->profile() != profile()) {
+ arc_session_manager()->SetProfile(profile());
+ arc_session_manager()->StartPreferenceHandler();
+ }
app_instance_observer()->OnInstanceReady();
}

Powered by Google App Engine
This is Rietveld 408576698