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

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

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.h
diff --git a/chrome/browser/android/offline_pages/offline_page_utils.h b/chrome/browser/android/offline_pages/offline_page_utils.h
index f2231957ff4e586567fd3d95dbdf2f5eeb0dc424..3f32c12056ee5a42621013b8e8ab28b0aad5eeb7 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils.h
+++ b/chrome/browser/android/offline_pages/offline_page_utils.h
@@ -68,6 +68,10 @@ class OfflinePageUtils {
// ID of the tab.
static bool GetTabId(content::WebContents* web_contents, int* tab_id);
+ // Returns true if the |web_contents| is currently being presented inside a
+ // custom tab.
+ static bool CurrentlyShownInCustomTab(content::WebContents* web_contents);
+
// Performs a check, whether pages with specified |url| and |name_space|
// already exist. Result is returned in a |callback|, where first parameter
// indicates whether offline pages exist, while second is a helper value to

Powered by Google App Engine
This is Rietveld 408576698