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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 1082313002: Fixing a typo which caused OverscrollNavigationOverlay to be created even when disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missing {} Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index ce104f21d7fba7a341dd3bc94791d8f7815d4801..8ce4de0148d5dfde6d2bbc24769811c72e4fae80 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -946,9 +946,9 @@ void WebContentsViewAura::SetOverscrollControllerEnabled(bool enabled) {
InstallOverscrollControllerDelegate(view);
}
- if (!enabled)
+ if (!enabled) {
navigation_overlay_.reset();
- if (!navigation_overlay_) {
+ } else if (!navigation_overlay_) {
navigation_overlay_.reset(
new OverscrollNavigationOverlay(web_contents_, window_.get()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698