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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 2395763003: Do not white list offline archive directory (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/resources/offline_pages/offline_internals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 550c96de6aed0f2917e4bc0dc6dc38847ff7059b..8825dd06c36f8714fa47174bb68d4d370c54b91c 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -515,15 +515,6 @@ bool ChromeNetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
if (external_storage_path.IsParent(path))
return true;
- // Allow to load offline pages, which are stored in the $PROFILE_PATH/Offline
- // Pages/archives.
- if (!profile_path_.empty()) {
- const base::FilePath offline_page_archives =
- profile_path_.Append(chrome::kOfflinePageArchivesDirname);
mmenke 2016/10/06 15:28:31 Do we still need the chrome/common/chrome_constant
jianli 2016/10/06 22:31:33 Done.
- if (offline_page_archives.IsParent(path))
- return true;
- }
-
// Whitelist of other allowed directories.
static const char* const kLocalAccessWhiteList[] = {
"/sdcard",
« no previous file with comments | « no previous file | chrome/browser/resources/offline_pages/offline_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698