Commit 10292bf4 authored by Kevin McNee's avatar Kevin McNee Committed by Commit Bot

Remove tab_util::GetWebContentsByFrameID

This function is unused.

Bug: None
Change-Id: I70983782cfeda23f6175e6a29024c2dc1c58a273
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485397Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Kevin McNee <mcnee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818908}
parent 31169c5a
...@@ -6,9 +6,7 @@ ...@@ -6,9 +6,7 @@
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/browser_url_handler.h" #include "content/public/browser/browser_url_handler.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_view_host.h" #include "content/public/browser/render_view_host.h"
#include "content/public/browser/site_instance.h" #include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
...@@ -19,7 +17,6 @@ ...@@ -19,7 +17,6 @@
#include "extensions/browser/extension_registry.h" #include "extensions/browser/extension_registry.h"
#endif #endif
using content::RenderFrameHost;
using content::RenderViewHost; using content::RenderViewHost;
using content::SiteInstance; using content::SiteInstance;
using content::WebContents; using content::WebContents;
...@@ -35,15 +32,6 @@ content::WebContents* GetWebContentsByID(int render_process_id, ...@@ -35,15 +32,6 @@ content::WebContents* GetWebContentsByID(int render_process_id,
return WebContents::FromRenderViewHost(render_view_host); return WebContents::FromRenderViewHost(render_view_host);
} }
content::WebContents* GetWebContentsByFrameID(int render_process_id,
int render_frame_id) {
RenderFrameHost* render_frame_host =
RenderFrameHost::FromID(render_process_id, render_frame_id);
if (!render_frame_host)
return NULL;
return WebContents::FromRenderFrameHost(render_frame_host);
}
scoped_refptr<SiteInstance> GetSiteInstanceForNewTab(Profile* profile, scoped_refptr<SiteInstance> GetSiteInstanceForNewTab(Profile* profile,
GURL url) { GURL url) {
// Rewrite the |url| if necessary, to ensure that the SiteInstance is // Rewrite the |url| if necessary, to ensure that the SiteInstance is
......
...@@ -22,9 +22,6 @@ namespace tab_util { ...@@ -22,9 +22,6 @@ namespace tab_util {
content::WebContents* GetWebContentsByID(int render_process_id, content::WebContents* GetWebContentsByID(int render_process_id,
int render_view_id); int render_view_id);
content::WebContents* GetWebContentsByFrameID(int render_process_id,
int render_frame_id);
// Returns a new SiteInstance for WebUI and app URLs. Returns NULL otherwise. // Returns a new SiteInstance for WebUI and app URLs. Returns NULL otherwise.
scoped_refptr<content::SiteInstance> GetSiteInstanceForNewTab(Profile* profile, scoped_refptr<content::SiteInstance> GetSiteInstanceForNewTab(Profile* profile,
GURL url); GURL url);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment