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

Unified Diff: components/offline_pages/offline_page_model_impl.cc

Issue 2023293002: OfflinePageModel cleanups - improved CanSavePage() and moved static kInvalidOfflineId to impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/offline_page_model_impl.cc
diff --git a/components/offline_pages/offline_page_model_impl.cc b/components/offline_pages/offline_page_model_impl.cc
index e36afd3e03f4d78d96240341e9b9b105ef92b7df..5c72d5d436b05805d2dfed64441c229f39561291 100644
--- a/components/offline_pages/offline_page_model_impl.cc
+++ b/components/offline_pages/offline_page_model_impl.cc
@@ -175,7 +175,7 @@ void OfflinePageModelImpl::SavePage(
// Skip saving the page that is not intended to be saved, like local file
// page.
- if (url.is_valid() && !CanSavePage(url)) {
+ if (url.is_valid() && !url.SchemeIsHTTPOrHTTPS()) {
dewittj 2016/06/01 16:05:04 Why not CanSavePage?
dougarnett 2016/06/01 16:18:25 Good question here about where CanSaveURL() should
dougarnett 2016/06/01 19:27:09 Justin and I chatted about this offline wondering
fgorski 2016/06/01 20:21:03 url.is_valid() was added recently, by jianli. We t
dougarnett 2016/06/01 22:40:22 Ok put CanSave method back on the Model with url.i
InformSavePageDone(callback, SavePageResult::SKIPPED, client_id,
kInvalidOfflineId);
return;

Powered by Google App Engine
This is Rietveld 408576698