| Index: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
| diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
| index 061bf0cc2fda7c07049100bc5a0f3a1555228583..c9273e10fc0d6c0300c9c91bb85c30f60a6f8926 100644
|
| --- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
| +++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
| @@ -136,7 +136,7 @@ void DomDistillerViewerSource::RequestViewerHandle::DidFinishNavigation(
|
|
|
| const GURL& navigation = navigation_handle->GetURL();
|
| bool expected_main_view_request =
|
| - navigation.SchemeIs(expected_scheme_.c_str()) &&
|
| + navigation.SchemeIs(expected_scheme_) &&
|
| expected_request_path_ == navigation.query();
|
| if (navigation_handle->IsSameDocument() || expected_main_view_request) {
|
| // In-page navigations, as well as the main view request can be ignored.
|
| @@ -291,7 +291,7 @@ std::string DomDistillerViewerSource::GetMimeType(
|
|
|
| bool DomDistillerViewerSource::ShouldServiceRequest(
|
| const net::URLRequest* request) const {
|
| - return request->url().SchemeIs(scheme_.c_str());
|
| + return request->url().SchemeIs(scheme_);
|
| }
|
|
|
| // TODO(nyquist): Start tracking requests using this method.
|
|
|