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

Unified Diff: chrome/browser/extensions/extension_service.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_service.cc
===================================================================
--- chrome/browser/extensions/extension_service.cc (revision 110303)
+++ chrome/browser/extensions/extension_service.cc (working copy)
@@ -87,12 +87,12 @@
#include "content/browser/debugger/devtools_manager.h"
#include "content/browser/plugin_process_host.h"
#include "content/browser/plugin_service.h"
-#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/user_metrics.h"
#include "content/common/pepper_plugin_registry.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
+#include "content/public/browser/render_process_host.h"
#include "googleurl/src/gurl.h"
#include "net/base/registry_controlled_domain.h"
#include "webkit/database/database_tracker.h"
@@ -920,7 +920,7 @@
!i.IsAtEnd(); i.Advance()) {
RenderProcessHost* host = i.GetCurrentValue();
Profile* host_profile =
- Profile::FromBrowserContext(host->browser_context());
+ Profile::FromBrowserContext(host->GetBrowserContext());
if (host_profile->GetOriginalProfile() == profile_->GetOriginalProfile()) {
std::vector<ExtensionMsg_Loaded_Params> loaded_extensions(
1, ExtensionMsg_Loaded_Params(extension));
@@ -1040,7 +1040,7 @@
!i.IsAtEnd(); i.Advance()) {
RenderProcessHost* host = i.GetCurrentValue();
Profile* host_profile =
- Profile::FromBrowserContext(host->browser_context());
+ Profile::FromBrowserContext(host->GetBrowserContext());
if (host_profile->GetOriginalProfile() == profile_->GetOriginalProfile())
host->Send(new ExtensionMsg_Unloaded(extension->id()));
}
@@ -2319,7 +2319,7 @@
RenderProcessHost* process =
content::Source<RenderProcessHost>(source).ptr();
Profile* host_profile =
- Profile::FromBrowserContext(process->browser_context());
+ Profile::FromBrowserContext(process->GetBrowserContext());
if (!profile_->IsSameProfile(host_profile->GetOriginalProfile()))
break;
@@ -2346,18 +2346,18 @@
RenderProcessHost* process =
content::Source<RenderProcessHost>(source).ptr();
Profile* host_profile =
- Profile::FromBrowserContext(process->browser_context());
+ Profile::FromBrowserContext(process->GetBrowserContext());
if (!profile_->IsSameProfile(host_profile->GetOriginalProfile()))
break;
- installed_app_hosts_.erase(process->id());
+ installed_app_hosts_.erase(process->GetID());
- process_map_.Remove(process->id());
+ process_map_.Remove(process->GetID());
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&ExtensionInfoMap::UnregisterAllExtensionsInProcess,
profile_->GetExtensionInfoMap(),
- process->id()));
+ process->GetID()));
break;
}
case chrome::NOTIFICATION_PREF_CHANGED: {

Powered by Google App Engine
This is Rietveld 408576698