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

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: merge to trunk 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
« no previous file with comments | « mandoline/ui/desktop_ui/browser_window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4faabe4730df13cf6d4a8e700fbcf3553b187101..1634382455576ba4cb8a1a91cf7480fdd22aa927 100644
--- a/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
+++ b/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
@@ -71,7 +71,6 @@ void PhoneBrowserApplicationDelegate::LaunchURL(const mojo::String& url) {
void PhoneBrowserApplicationDelegate::OnEmbed(mojo::View* root) {
CHECK(!root_);
root_ = root;
- root->connection()->SetEmbedRoot();
content_ = root->connection()->CreateView();
root->AddChild(content_);
content_->SetBounds(root->bounds());
@@ -79,6 +78,7 @@ void PhoneBrowserApplicationDelegate::OnEmbed(mojo::View* root) {
root->AddObserver(this);
host_->SetSize(mojo::Size::From(gfx::Size(320, 640)));
+ content_->SetAccessPolicy(mojo::ViewTree::ACCESS_POLICY_EMBED_ROOT);
web_view_.Init(app_, content_);
LaunchURL(default_url_);
}
« no previous file with comments | « mandoline/ui/desktop_ui/browser_window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698