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

Unified Diff: mandoline/ui/browser/android/android_ui.cc

Issue 1134443005: Fixes android mandoline ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/browser/android/android_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/browser/android/android_ui.cc
diff --git a/mandoline/ui/browser/android/android_ui.cc b/mandoline/ui/browser/android/android_ui.cc
index 3239d1e6e3ed077c4c3d078721238763109a84c6..2846e8aa33d1a6e4f4462bd9e0133c984af0ac08 100644
--- a/mandoline/ui/browser/android/android_ui.cc
+++ b/mandoline/ui/browser/android/android_ui.cc
@@ -16,8 +16,7 @@ class Browser;
AndroidUI::AndroidUI(Browser* browser, mojo::ApplicationImpl* application_impl)
: browser_(browser),
application_impl_(application_impl),
- root_(nullptr),
- content_(nullptr) {}
+ root_(nullptr) {}
AndroidUI::~AndroidUI() {
root_->RemoveObserver(this);
@@ -36,7 +35,7 @@ void AndroidUI::OnURLChanged() {
void AndroidUI::OnViewBoundsChanged(mojo::View* view,
const mojo::Rect& old_bounds,
const mojo::Rect& new_bounds) {
- content_->SetBounds(
+ browser_->content()->SetBounds(
*mojo::Rect::From(gfx::Rect(0, 0, new_bounds.width, new_bounds.height)));
}
« no previous file with comments | « mandoline/ui/browser/android/android_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698