Index: chrome/browser/printing/cloud_print/privet_notifications.cc |
diff --git a/chrome/browser/printing/cloud_print/privet_notifications.cc b/chrome/browser/printing/cloud_print/privet_notifications.cc |
index 2176e914e0913b45ef6bf61deee80b4c4fa0baa4..2b3b7637ebd3ab53739e7de548aa1df8460887b5 100644 |
--- a/chrome/browser/printing/cloud_print/privet_notifications.cc |
+++ b/chrome/browser/printing/cloud_print/privet_notifications.cc |
@@ -36,6 +36,7 @@ |
#include "components/signin/core/browser/signin_manager_base.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/navigation_controller.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/web_contents.h" |
#include "grit/theme_resources.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -344,7 +345,8 @@ void PrivetNotificationService::StartLister() { |
std::unique_ptr<PrivetHTTPAsynchronousFactory> http_factory( |
PrivetHTTPAsynchronousFactory::CreateInstance( |
- profile_->GetRequestContext())); |
+ content::BrowserContext::GetDefaultStoragePartition(profile_)-> |
+ GetURLRequestContext())); |
privet_notifications_listener_.reset( |
new PrivetNotificationsListener(std::move(http_factory), this)); |