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

Unified Diff: chrome/browser/renderer_host/chrome_render_view_host_observer.cc

Issue 9653022: Revert 125811 - Convert app_bindings.js to the schema_generated_bindings.js infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/chrome_renderer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_render_view_host_observer.cc
===================================================================
--- chrome/browser/renderer_host/chrome_render_view_host_observer.cc (revision 125812)
+++ chrome/browser/renderer_host/chrome_render_view_host_observer.cc (working copy)
@@ -104,6 +104,7 @@
content::RenderProcessHost* process = render_view_host()->GetProcess();
if (extension->is_app()) {
+ Send(new ExtensionMsg_ActivateApplication(extension->id()));
// Though we already record the associated process ID for the renderer in
// InitRenderViewHostForExtensions, the process might have crashed and been
// restarted (hence the re-initialization), so we need to update that
@@ -126,21 +127,13 @@
}
}
- switch (type) {
- case Extension::TYPE_EXTENSION:
- case Extension::TYPE_USER_SCRIPT:
- case Extension::TYPE_HOSTED_APP:
- case Extension::TYPE_PACKAGED_APP:
- case Extension::TYPE_PLATFORM_APP:
- Send(new ExtensionMsg_ActivateExtension(extension->id()));
- break;
-
- case Extension::TYPE_UNKNOWN:
- case Extension::TYPE_THEME:
- break;
-
- default:
- NOTREACHED();
+ if (type == Extension::TYPE_EXTENSION ||
+ type == Extension::TYPE_USER_SCRIPT ||
+ type == Extension::TYPE_PACKAGED_APP ||
+ type == Extension::TYPE_PLATFORM_APP ||
+ (type == Extension::TYPE_HOSTED_APP &&
+ extension->location() == Extension::COMPONENT)) {
+ Send(new ExtensionMsg_ActivateExtension(extension->id()));
}
}
« no previous file with comments | « no previous file | chrome/chrome_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698