Create MimeHandlerViewGuest in the same process as the extension handling the mime...
commit578bfd32228aa9c3c797bc7114331785739266fb
authorlazyboy <lazyboy@chromium.org>
Thu, 18 Sep 2014 01:53:35 +0000 (17 18:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Sep 2014 01:54:14 +0000 (18 01:54 +0000)
treec0ad610ed455381d0ca0e5b46ddae27d686a9f89
parentdee043be2f063a97d4fe7cde3c6d46096693db18
Create MimeHandlerViewGuest in the same process as the extension handling the mime type.

This will make sure we do not keep lingering storage stuff like before, as
previously we were creating different site instances for each type of mime
type.

BUG=415358
Test=No visible change is expected.
To the test process behavior, you'd need --out-of-process-pdf and
--enable-mime-handler-view flag and apply the patch to enable oop PDF:
http://crrev.com/392813003/.
Now if you navigate to two PDF files in the tab and check chrome's
task manager, you'd see the PDF extension and the mime-handler-views
ended up in the same process.

Review URL: https://codereview.chromium.org/580963003

Cr-Commit-Position: refs/heads/master@{#295394}
extensions/browser/extension_message_filter.cc
extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc