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

Unified Diff: chrome/browser/android/offline_pages/offline_page_utils.cc

Issue 2773273002: Last_n: do not save snapshot of custom tabs. (Closed)
Patch Set: Renamed method; added custom tab checks to tests. Created 3 years, 9 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
Index: chrome/browser/android/offline_pages/offline_page_utils.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_utils.cc b/chrome/browser/android/offline_pages/offline_page_utils.cc
index 1d304f2adb0ca37b64d3f7fa7d2b808abcfaf607..f46ad484cb1ae275e284762985f8e35947e4d9ba 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils.cc
+++ b/chrome/browser/android/offline_pages/offline_page_utils.cc
@@ -158,6 +158,14 @@ bool OfflinePageUtils::GetTabId(content::WebContents* web_contents,
}
// static
+bool OfflinePageUtils::CurrentlyShownInCustomTab(
+ content::WebContents* web_contents) {
+ TabAndroid* tab_android = TabAndroid::FromWebContents(web_contents);
+ DCHECK(tab_android);
+ return tab_android && tab_android->IsCurrentlyACustomTab();
+}
+
+// static
void OfflinePageUtils::CheckExistenceOfPagesWithURL(
content::BrowserContext* browser_context,
const std::string name_space,
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_utils.h ('k') | chrome/browser/android/offline_pages/recent_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698