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

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: 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..29ddbb863a92c9a4e81aa264a361d3b8f2c89fa8 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 IsCurrentlyACustomTab(content::WebContents* web_contents);
dewittj 2017/03/27 20:37:45 nit: a web contents isn't a custom tab, it is show
gone 2017/03/27 22:22:10 +1
carlosk 2017/03/28 02:00:32 Done.
+
// 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