| Index: chrome/browser/android/tab_android.cc
|
| diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
|
| index 029e63695cdff20bfe14a7672cf6999de2d29ced..2d0e15b561ec78ae2a5e4b15d6782c5c23994661 100644
|
| --- a/chrome/browser/android/tab_android.cc
|
| +++ b/chrome/browser/android/tab_android.cc
|
| @@ -287,6 +287,20 @@ void TabAndroid::MakeLoadURLParams(
|
| }
|
| }
|
|
|
| +bool TabAndroid::HasOfflinePages() const {
|
| + if (!offline_pages::IsOfflinePagesEnabled())
|
| + return false;
|
| + offline_pages::OfflinePageModel* offline_page_model =
|
| + offline_pages::OfflinePageModelFactory::GetForBrowserContext(
|
| + GetProfile());
|
| + return !offline_page_model->GetAllPages().empty();
|
| +}
|
| +
|
| +void TabAndroid::ShowOfflinePages() {
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| + Java_Tab_showOfflinePages(env, weak_java_tab_.get(env).obj());
|
| +}
|
| +
|
| void TabAndroid::SwapTabContents(content::WebContents* old_contents,
|
| content::WebContents* new_contents,
|
| bool did_start_load,
|
|
|