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

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

Issue 10274013: Revert order of EXTENSION_LOADED and EXTENSION_INSTALLED notifications back to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fix Created 8 years, 8 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: chrome/browser/extensions/extension_event_router.cc
diff --git a/chrome/browser/extensions/extension_event_router.cc b/chrome/browser/extensions/extension_event_router.cc
index 0b957df105e5dda66627ed0d1aa6ffd1a9a4f785..abd8f031ab5b0eff2ced9a1983db2c35ed5a0023 100644
--- a/chrome/browser/extensions/extension_event_router.cc
+++ b/chrome/browser/extensions/extension_event_router.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/message_loop.h"
#include "base/values.h"
#include "chrome/browser/extensions/api/runtime/runtime_api.h"
#include "chrome/browser/extensions/api/web_request/web_request_api.h"
@@ -494,8 +495,9 @@ void ExtensionEventRouter::Observe(
// Dispatch the onInstalled event.
const Extension* extension =
content::Details<const Extension>(details).ptr();
- extensions::RuntimeEventRouter::DispatchOnInstalledEvent(
- profile_, extension);
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(&extensions::RuntimeEventRouter::DispatchOnInstalledEvent,
+ profile_, extension->id()));
break;
}
default:
« no previous file with comments | « chrome/browser/extensions/component_loader_unittest.cc ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698