| Index: components/dom_distiller/core/url_utils.cc
|
| diff --git a/components/dom_distiller/core/url_utils.cc b/components/dom_distiller/core/url_utils.cc
|
| index c1bb35fcaf41f0560a0da64d483698bfa998092c..6ef2fe27c6d263cf3a53a07e8f6c6b7b863fc96c 100644
|
| --- a/components/dom_distiller/core/url_utils.cc
|
| +++ b/components/dom_distiller/core/url_utils.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "base/guid.h"
|
| #include "base/strings/string_number_conversions.h"
|
| +#include "components/dom_distiller/core/dom_distiller_features.h"
|
| #include "components/dom_distiller/core/url_constants.h"
|
| #include "grit/components_resources.h"
|
| #include "net/base/url_util.h"
|
| @@ -85,7 +86,11 @@ std::string GetValueForKeyInUrlPathQuery(const std::string& path,
|
| }
|
|
|
| bool IsUrlDistillable(const GURL& url) {
|
| - return url.is_valid() && url.SchemeIsHTTPOrHTTPS();
|
| + if (!url.is_valid())
|
| + return false;
|
| + if (IsDistillabilityDevSet() && url.SchemeIsFile())
|
| + return true;
|
| + return url.SchemeIsHTTPOrHTTPS();
|
| }
|
|
|
| bool IsDistilledPage(const GURL& url) {
|
|
|