summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/isolated_app_apitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/isolated_app_apitest.cc')
-rw-r--r--chrome/browser/extensions/isolated_app_apitest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/extensions/isolated_app_apitest.cc b/chrome/browser/extensions/isolated_app_apitest.cc
index eedbbd06..d7bcccf 100644
--- a/chrome/browser/extensions/isolated_app_apitest.cc
+++ b/chrome/browser/extensions/isolated_app_apitest.cc
@@ -31,7 +31,8 @@ class IsolatedAppApiTest : public ExtensionApiTest {
const Extension* GetInstalledApp(TabContents* contents) {
const Extension* installed_app = NULL;
- ExtensionService* service = contents->profile()->GetExtensionService();
+ Profile* profile = Profile::FromBrowserContext(contents->browser_context());
+ ExtensionService* service = profile->GetExtensionService();
if (service) {
installed_app = service->GetInstalledAppForRenderer(
contents->render_view_host()->process()->id());