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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_request_job.cc

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: disable checks in sub classes Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/offline_pages/offline_page_request_job.h" 5 #include "chrome/browser/android/offline_pages/offline_page_request_job.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 DCHECK(fake_headers_for_redirect_->IsRedirect(nullptr)); 710 DCHECK(fake_headers_for_redirect_->IsRedirect(nullptr));
711 711
712 URLRequestJob::NotifyHeadersComplete(); 712 URLRequestJob::NotifyHeadersComplete();
713 } 713 }
714 714
715 void OfflinePageRequestJob::SetDelegateForTesting( 715 void OfflinePageRequestJob::SetDelegateForTesting(
716 std::unique_ptr<Delegate> delegate) { 716 std::unique_ptr<Delegate> delegate) {
717 delegate_ = std::move(delegate); 717 delegate_ = std::move(delegate);
718 } 718 }
719 719
720 bool OfflinePageRequestJob::CanAccessFile(const base::FilePath& original_path,
721 const base::FilePath& absolute_path) {
722 return true;
723 }
724
720 } // namespace offline_pages 725 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698