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

Unified Diff: mandoline/ui/phone_ui/phone_browser_application_delegate.cc

Issue 1317713006: Changes around how embed roots are set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 3 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: mandoline/ui/phone_ui/phone_browser_application_delegate.cc
diff --git a/mandoline/ui/phone_ui/phone_browser_application_delegate.cc b/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
index d01ac826cecea7037780add1f9c8c2c21e606251..42ddf7467f946d6ae7bd885b73c4408a74e15c69 100644
--- a/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
+++ b/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
@@ -66,13 +66,13 @@ void PhoneBrowserApplicationDelegate::LaunchURL(const mojo::String& url) {
// PhoneBrowserApplicationDelegate, mojo::ViewTreeDelegate implementation:
void PhoneBrowserApplicationDelegate::OnEmbed(mojo::View* root) {
- root->connection()->SetEmbedRoot();
content_ = root->connection()->CreateView();
root->AddChild(content_);
content_->SetBounds(root->bounds());
content_->SetVisible(true);
host_->SetSize(mojo::Size::From(gfx::Size(320, 640)));
+ content_->SetAccessPolicy(mojo::ViewTree::kAccessPolicyEmbedRoot);
web_view_.Init(app_, content_);
LaunchURL(default_url_);
}

Powered by Google App Engine
This is Rietveld 408576698