Index: apps/app_restore_service_browsertest.cc |
diff --git a/apps/app_restore_service_browsertest.cc b/apps/app_restore_service_browsertest.cc |
index 111b45d3b9f39dba1f021798f343f8d65718082e..acdea78b16efc0e170b018ff85f8fc3ea8155182 100644 |
--- a/apps/app_restore_service_browsertest.cc |
+++ b/apps/app_restore_service_browsertest.cc |
@@ -7,7 +7,7 @@ |
#include "apps/saved_files_service.h" |
#include "chrome/browser/apps/app_browsertest_util.h" |
#include "chrome/browser/extensions/api/file_system/file_system_api.h" |
-#include "chrome/browser/profiles/profile.h" |
+#include "content/public/browser/browser_context.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/test/test_utils.h" |
#include "extensions/browser/extension_prefs.h" |
@@ -50,8 +50,8 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, RunningAppsAreRecorded) { |
extension_prefs->SetExtensionRunning(extension->id(), true); |
ExtensionTestMessageListener restart_listener("onRestarted", false); |
- apps::AppRestoreServiceFactory::GetForProfile(browser()->profile())-> |
- HandleStartup(true); |
+ apps::AppRestoreServiceFactory::GetForBrowserContext(browser()->profile()) |
+ ->HandleStartup(true); |
restart_listener.WaitUntilSatisfied(); |
} |
@@ -188,8 +188,8 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_FileAccessIsRestored) { |
extension->id(), it->id, it->path, it->is_directory); |
} |
- apps::AppRestoreServiceFactory::GetForProfile(browser()->profile())-> |
- HandleStartup(true); |
+ apps::AppRestoreServiceFactory::GetForBrowserContext(browser()->profile()) |
+ ->HandleStartup(true); |
access_ok_listener.WaitUntilSatisfied(); |
} |