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