Chromium Code Reviews| 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 |