Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModelImpl.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModelImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModelImpl.java |
index a33adac90ad9f231e3359738f67ef3419e6fff97..483202dcc8fa28ad6d3120a046c15a676fdea08b 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModelImpl.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModelImpl.java |
@@ -23,6 +23,7 @@ |
private ChromeTab mTab; |
private boolean mIsIncognito; |
+ private int mLoadProgress; |
private int mPrimaryColor; |
private boolean mIsUsingBrandColor; |
@@ -83,6 +84,22 @@ |
} |
/** |
+ * Set the load progress for the current tab. |
+ * @param progress The loading progress for the tab. |
+ */ |
+ public void setLoadProgress(int progress) { |
+ assert progress >= 0; |
+ assert progress <= 100; |
+ |
+ mLoadProgress = progress; |
+ } |
+ |
+ @Override |
+ public int getLoadProgress() { |
+ return mLoadProgress; |
+ } |
+ |
+ /** |
* Sets the primary color and changes the state for isUsingBrandColor. |
* @param color The primary color for the current tab. |
*/ |