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

Unified Diff: chrome/browser/extensions/isolated_app_apitest.cc

Issue 6880089: Don't hold the installed app in BrowserProcessRenderHost, since that's in content layer now. Ext... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browser tests Created 9 years, 8 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 | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/notifications/balloon_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/isolated_app_apitest.cc
===================================================================
--- chrome/browser/extensions/isolated_app_apitest.cc (revision 82593)
+++ chrome/browser/extensions/isolated_app_apitest.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/automation/automation_util.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_host.h"
+#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_switches.h"
@@ -29,8 +30,13 @@
}
const Extension* GetInstalledApp(TabContents* contents) {
- return static_cast<BrowserRenderProcessHost*>(
- contents->render_view_host()->process())->installed_app();
+ const Extension* installed_app = NULL;
+ ExtensionService* service = contents->profile()->GetExtensionService();
+ if (service) {
+ installed_app = service->GetInstalledAppForRenderer(
+ contents->render_view_host()->process()->id());
+ }
+ return installed_app;
}
};
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/notifications/balloon_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698