Index: chrome/browser/printing/printing_message_filter.cc |
diff --git a/chrome/browser/printing/printing_message_filter.cc b/chrome/browser/printing/printing_message_filter.cc |
index c4aedae8c083ed8425fc4a2bfaaa1afa60308088..4e76d0f385d1598c40c5ab96b227f8dac720c033 100644 |
--- a/chrome/browser/printing/printing_message_filter.cc |
+++ b/chrome/browser/printing/printing_message_filter.cc |
@@ -17,6 +17,7 @@ |
#include "chrome/common/print_messages.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/render_view_host.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_view.h" |
@@ -86,7 +87,8 @@ PrintingMessageFilter::PrintingMessageFilter(int render_process_id, |
Profile* profile) |
: print_job_manager_(g_browser_process->print_job_manager()), |
profile_io_data_(ProfileIOData::FromResourceContext( |
- profile->GetResourceContext())), |
+ content::BrowserContext::GetDefaultStoragePartition(profile)-> |
+ GetResourceContext())), |
render_process_id_(render_process_id) { |
} |