Index: mandoline/ui/desktop_ui/browser_window.cc |
diff --git a/mandoline/ui/desktop_ui/browser_window.cc b/mandoline/ui/desktop_ui/browser_window.cc |
index 24bc10f394aeebf6d4644f2a8894262ccf54c612..051c264b61b039b51446ef2929166d94a94f0863 100644 |
--- a/mandoline/ui/desktop_ui/browser_window.cc |
+++ b/mandoline/ui/desktop_ui/browser_window.cc |
@@ -126,10 +126,6 @@ void BrowserWindow::OnEmbed(mojo::View* root) { |
// Record when the browser window was displayed, used for performance testing. |
const base::Time display_time = base::Time::Now(); |
- // Make it so we get OnWillEmbed() for any Embed()s done by other apps we |
- // Embed(). |
- root->connection()->SetEmbedRoot(); |
- |
root_ = root; |
host_->SetTitle("Mandoline"); |
@@ -142,6 +138,8 @@ void BrowserWindow::OnEmbed(mojo::View* root) { |
root_->AddChild(content_); |
content_->SetVisible(true); |
+ content_->SetAccessPolicy(mojo::ViewTree::ACCESS_POLICY_EMBED_ROOT); |
+ |
web_view_.Init(app_, content_); |
host_->AddAccelerator(BrowserCommand_Close, mojo::KEYBOARD_CODE_W, |