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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java

Issue 1860743002: Add a flag to change when android's progress bar completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bad merge Created 4 years, 6 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 | chrome/app/generated_resources.grd » ('j') | content/public/common/web_preferences.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
index a10c145f18939b7f61b5eb04bac99bb3ecdda4b7..cf758bbde21d5cfa4b746155e0856de027fc02c0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
@@ -317,6 +317,8 @@ public class ToolbarManager implements ToolbarTabController, UrlFocusChangeListe
int statusCode) {
if (isNavigationToDifferentPage) {
mToolbar.onNavigatedToDifferentPage();
+ mToolbar.startLoadProgress();
+ updateLoadProgress(tab.getProgress());
}
}
@@ -1157,6 +1159,7 @@ public class ToolbarManager implements ToolbarTabController, UrlFocusChangeListe
progress = Math.max(progress, MINIMUM_LOAD_PROGRESS);
mToolbar.setLoadProgress(progress / 100f);
+ if (progress == 100) finishLoadProgress(true);
}
private void finishLoadProgress(boolean delayed) {
« no previous file with comments | « no previous file | chrome/app/generated_resources.grd » ('j') | content/public/common/web_preferences.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698