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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 2245733004: Serve offline page for online URL on disconnected or bad networks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment in test Created 4 years, 4 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
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index e0c5b22755cb8da241196c2be52ec3bdfb7f25e2..cb3f838153fdbe695fede346ef37c195bac46e06 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -69,7 +69,7 @@
#include "storage/browser/quota/special_storage_policy.h"
#if defined(OS_ANDROID)
-#include "chrome/browser/android/offline_pages/offline_page_request_handler.h"
+#include "chrome/browser/android/offline_pages/offline_page_request_interceptor.h"
#endif // defined(OS_ANDROID)
namespace {
@@ -532,11 +532,9 @@ void ProfileImplIOData::InitializeInternal(
// Install the Offline Page Interceptor.
#if defined(OS_ANDROID)
- std::unique_ptr<net::URLRequestInterceptor> offline_page_interceptor =
- offline_pages::OfflinePageRequestHandler::CreateInterceptor(
- profile_params->profile);
- if (offline_page_interceptor)
- request_interceptors.push_back(std::move(offline_page_interceptor));
+ request_interceptors.push_back(std::unique_ptr<net::URLRequestInterceptor>(
+ new offline_pages::OfflinePageRequestInterceptor(
+ profile_params->profile)));
#endif
// The data reduction proxy interceptor should be as close to the network

Powered by Google App Engine
This is Rietveld 408576698