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

Unified Diff: apps/app_restore_service_browsertest.cc

Issue 2729503007: Remove Profile usage from //apps (Closed)
Patch Set: deps Created 3 years, 9 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 | « apps/app_restore_service.cc ('k') | apps/app_restore_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « apps/app_restore_service.cc ('k') | apps/app_restore_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698