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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/extension_webrequest_api.cc
===================================================================
--- chrome/browser/extensions/extension_webrequest_api.cc (revision 110571)
+++ chrome/browser/extensions/extension_webrequest_api.cc (working copy)
@@ -290,10 +290,11 @@
profile->GetExtensionService()->SetHasUsedWebRequest(extension, true);
content::BrowserContext* browser_context = profile;
- for (RenderProcessHost::iterator it = RenderProcessHost::AllHostsIterator();
+ for (content::RenderProcessHost::iterator it =
+ content::RenderProcessHost::AllHostsIterator();
!it.IsAtEnd(); it.Advance()) {
- RenderProcessHost* host = it.GetCurrentValue();
- if (host->browser_context() == browser_context)
+ content::RenderProcessHost* host = it.GetCurrentValue();
+ if (host->GetBrowserContext() == browser_context)
SendExtensionWebRequestStatusToHost(host);
}
}
@@ -1629,8 +1630,8 @@
Run();
}
-void SendExtensionWebRequestStatusToHost(RenderProcessHost* host) {
- Profile* profile = Profile::FromBrowserContext(host->browser_context());
+void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host) {
+ Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
if (!profile || !profile->GetExtensionService())
return;
« no previous file with comments | « chrome/browser/extensions/extension_webrequest_api.h ('k') | chrome/browser/extensions/isolated_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698