| Index: components/web_view/web_view_impl.cc
|
| diff --git a/components/web_view/web_view_impl.cc b/components/web_view/web_view_impl.cc
|
| index 322fcaefa468458497f891a802ff1c03e46803e1..e73058937ec679c22701d31446d6c1c148c9083c 100644
|
| --- a/components/web_view/web_view_impl.cc
|
| +++ b/components/web_view/web_view_impl.cc
|
| @@ -92,7 +92,9 @@ void WebViewImpl::GetViewTreeClient(
|
| // WebViewImpl, mojo::ViewTreeDelegate implementation:
|
|
|
| void WebViewImpl::OnEmbed(mojo::View* root) {
|
| - root->connection()->SetEmbedRoot();
|
| + // We must have been granted embed root priviledges, otherwise we can't
|
| + // Embed() in any descendants.
|
| + DCHECK(root->connection()->IsEmbedRoot());
|
| root->AddObserver(this);
|
| root_ = root;
|
| content_ = root->connection()->CreateView();
|
|
|