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

Unified Diff: components/offline_pages/core/offline_page_model.cc

Issue 2754103003: Adds metric to help assess last_n impact on tab restores. (Closed)
Patch Set: Removed canSaveUrl method because it was already implemented elsewhere. 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: components/offline_pages/core/offline_page_model.cc
diff --git a/components/offline_pages/core/offline_page_model.cc b/components/offline_pages/core/offline_page_model.cc
index e8d7edeb33bd3ca59a80c19251023e51a5b17b6e..2fc3130f3c6523227a49ef26e3ded3b5c0846ecc 100644
--- a/components/offline_pages/core/offline_page_model.cc
+++ b/components/offline_pages/core/offline_page_model.cc
@@ -24,6 +24,8 @@ OfflinePageModel::SavePageParams::SavePageParams(const SavePageParams& other) {
// static
bool OfflinePageModel::CanSaveURL(const GURL& url) {
+ // Note: Must be kept in sync with Java implementation in
fgorski 2017/03/17 03:42:51 remove, please.
carlosk 2017/03/17 20:37:22 Done.
+ // OfflinePageUtils.CanSaveOnlineUrl.
return url.is_valid() && url.SchemeIsHTTPOrHTTPS();
}

Powered by Google App Engine
This is Rietveld 408576698