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

Unified Diff: chrome/browser/extensions/api/developer_private/inspectable_views_finder.cc

Issue 1413853005: Track all extension frames in ProcessManager, inspect extensionoptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup + remove DCHECK Created 5 years 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
Index: chrome/browser/extensions/api/developer_private/inspectable_views_finder.cc
diff --git a/chrome/browser/extensions/api/developer_private/inspectable_views_finder.cc b/chrome/browser/extensions/api/developer_private/inspectable_views_finder.cc
index 93d90f4f8a006d766fe64640a3b145c238dd8b92..e588cafec538d62dea0fb8b643321c6282f414f7 100644
--- a/chrome/browser/extensions/api/developer_private/inspectable_views_finder.cc
+++ b/chrome/browser/extensions/api/developer_private/inspectable_views_finder.cc
@@ -60,6 +60,9 @@ InspectableViewsFinder::View InspectableViewsFinder::ConstructView(
case VIEW_TYPE_EXTENSION_DIALOG:
view->type = api::developer_private::VIEW_TYPE_EXTENSION_DIALOG;
break;
+ case VIEW_TYPE_EXTENSION_GUEST:
+ view->type = api::developer_private::VIEW_TYPE_EXTENSION_GUEST;
+ break;
case VIEW_TYPE_EXTENSION_POPUP:
view->type = api::developer_private::VIEW_TYPE_EXTENSION_POPUP;
break;
@@ -148,8 +151,10 @@ void InspectableViewsFinder::GetViewsForExtensionProcess(
content::WebContents* web_contents =
content::WebContents::FromRenderFrameHost(host);
ViewType host_type = GetViewType(web_contents);
- if (host_type == VIEW_TYPE_EXTENSION_POPUP ||
- host_type == VIEW_TYPE_EXTENSION_DIALOG) {
+ if (host_type == VIEW_TYPE_INVALID ||
+ host_type == VIEW_TYPE_EXTENSION_POPUP ||
+ host_type == VIEW_TYPE_EXTENSION_DIALOG ||
+ host_type == VIEW_TYPE_APP_WINDOW) {
continue;
}

Powered by Google App Engine
This is Rietveld 408576698