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

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

Issue 10253021: Restore context menus to hosted app sites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 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 | « no previous file | chrome/browser/tab_contents/render_view_context_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/platform_app_browsertest.cc
diff --git a/chrome/browser/extensions/platform_app_browsertest.cc b/chrome/browser/extensions/platform_app_browsertest.cc
index 41b5a5142dd0b85d09449a569b2e7abd36cc40c1..d2929906503c170b1717151003b3adbe494d01bf 100644
--- a/chrome/browser/extensions/platform_app_browsertest.cc
+++ b/chrome/browser/extensions/platform_app_browsertest.cc
@@ -109,7 +109,8 @@ class PlatformAppBrowserTest : public ExtensionApiTest {
process_manager->platform_app_hosts();
for (iter = platform_app_hosts.begin(); iter != platform_app_hosts.end();
++iter) {
- return (*iter)->host_contents();
+ if ((*iter)->extension_host_type() == chrome::VIEW_TYPE_APP_SHELL)
+ return (*iter)->host_contents();
}
return NULL;
« no previous file with comments | « no previous file | chrome/browser/tab_contents/render_view_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698