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

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

Issue 2395763003: Do not white list offline archive directory (Closed)
Patch Set: Removed unneeded include file 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..88ef313520f928fd05818b962026e802df7095ad 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -35,7 +35,6 @@
#include "chrome/browser/net/safe_search_util.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/task_manager/task_manager_interface.h"
-#include "chrome/common/chrome_constants.h"
#include "chrome/common/features.h"
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/browser/cookie_settings.h"
@@ -515,15 +514,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);
- 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