diff options
author | rdevlin.cronin <rdevlin.cronin@chromium.org> | 2015-04-30 17:00:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-01 00:00:55 +0000 |
commit | b48a98e2373e9695cb5300279a6f7b64533c8759 (patch) | |
tree | 334e186f71c58de86946fe8b9465d6b6e973ffc8 /extensions/browser/process_manager.h | |
parent | d59fe6bfbf19bbc01a2ff9f39d6300339f577a3f (diff) | |
download | chromium_src-b48a98e2373e9695cb5300279a6f7b64533c8759.zip chromium_src-b48a98e2373e9695cb5300279a6f7b64533c8759.tar.gz chromium_src-b48a98e2373e9695cb5300279a6f7b64533c8759.tar.bz2 |
[Extensions Page] Fix background page inspectable view url
The background page's web contents is registered with the process manager
before the url is loaded, so we need to use the initial url for this, rather
than the last committed url.
BUG=482887
Review URL: https://codereview.chromium.org/1116153002
Cr-Commit-Position: refs/heads/master@{#327838}
Diffstat (limited to 'extensions/browser/process_manager.h')
-rw-r--r-- | extensions/browser/process_manager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/browser/process_manager.h b/extensions/browser/process_manager.h index 2b7b64f..f2a1138 100644 --- a/extensions/browser/process_manager.h +++ b/extensions/browser/process_manager.h @@ -89,6 +89,11 @@ class ProcessManager : public KeyedService, // the extension isn't running or doesn't have a background page. ExtensionHost* GetBackgroundHostForExtension(const std::string& extension_id); + // Returns the ExtensionHost for the given |render_frame_host|, if there is + // one. + ExtensionHost* GetExtensionHostForRenderFrameHost( + content::RenderFrameHost* render_frame_host); + // Returns true if the (lazy) background host for the given extension has // already been sent the unload event and is shutting down. bool IsBackgroundHostClosing(const std::string& extension_id); |