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

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

Issue 2522073002: [OfflinePages] RequestCoordinatorFactory return null for incognito (Closed)
Patch Set: Dropped GetBrowserContextToUse() per Filip Created 4 years, 1 month 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/net/net_error_tab_helper.cc
diff --git a/chrome/browser/net/net_error_tab_helper.cc b/chrome/browser/net/net_error_tab_helper.cc
index 823d96fd9a59b8d287529321bd40321bb0be47ea..22a6c2ac20aebcec36f09c2798dc485878a2e1da 100644
--- a/chrome/browser/net/net_error_tab_helper.cc
+++ b/chrome/browser/net/net_error_tab_helper.cc
@@ -281,6 +281,7 @@ void NetErrorTabHelper::DownloadPageLaterHelper(const GURL& page_url) {
offline_pages::RequestCoordinator* request_coordinator =
offline_pages::RequestCoordinatorFactory::GetForBrowserContext(
web_contents()->GetBrowserContext());
+ DCHECK(request_coordinator);
fgorski 2016/11/22 22:46:33 Doug, if request_coordinator is null here, you wil
Pete Williamson 2016/11/22 22:59:32 Actually, what I had in mind was not a DCHECK, but
dougarnett 2016/11/23 18:19:52 Done.
offline_pages::ClientId client_id(
offline_pages::kAsyncNamespace, base::GenerateGUID());
request_coordinator->SavePageLater(

Powered by Google App Engine
This is Rietveld 408576698