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

Unified Diff: extensions/browser/extension_web_contents_observer.cc

Issue 2211213002: Revert of [Extensions] Ensure ordering of extension [un]loaded, activated messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 months 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: extensions/browser/extension_web_contents_observer.cc
diff --git a/extensions/browser/extension_web_contents_observer.cc b/extensions/browser/extension_web_contents_observer.cc
index 12a2c7e9b7934478f30a0ffd1fc5dfeab48e3a9a..005c90da86c941626ce61112dc880309d50b76e7 100644
--- a/extensions/browser/extension_web_contents_observer.cc
+++ b/extensions/browser/extension_web_contents_observer.cc
@@ -18,7 +18,6 @@
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/browser/mojo/service_registration.h"
#include "extensions/browser/process_manager.h"
-#include "extensions/browser/renderer_startup_helper.h"
#include "extensions/browser/view_type_utils.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
@@ -106,9 +105,7 @@
//
// Plus, we can delete the concept of activating an extension once site
// isolation is turned on.
- RendererStartupHelperFactory::GetForBrowserContext(browser_context_)
- ->ActivateExtensionInProcess(extension->id(),
- render_view_host->GetProcess());
+ render_view_host->Send(new ExtensionMsg_ActivateExtension(extension->id()));
}
void ExtensionWebContentsObserver::RenderFrameCreated(
« no previous file with comments | « chrome/test/data/extensions/simple_with_file/manifest.json ('k') | extensions/browser/renderer_startup_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698