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

Unified Diff: content/browser/tracing/tracing_ui.cc

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 77bb72f27cb8cc68ba4825a33b580499e5ed10c4..234733b9f953fda3ccdfaa14cd1b83ac79b5454c 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -29,6 +29,7 @@
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/trace_uploader.h"
#include "content/public/browser/tracing_controller.h"
#include "content/public/browser/tracing_delegate.h"
@@ -294,7 +295,9 @@ void TracingUI::DoUploadInternal(const std::string& file_contents,
weak_factory_.GetWeakPtr());
trace_uploader_ = delegate_->GetTraceUploader(
- web_ui()->GetWebContents()->GetBrowserContext()->GetRequestContext());
+ BrowserContext::GetDefaultStoragePartition(
+ web_ui()->GetWebContents()->GetBrowserContext())->
+ GetURLRequestContext());
DCHECK(trace_uploader_);
trace_uploader_->DoUpload(file_contents, upload_mode, nullptr,
progress_callback, done_callback);

Powered by Google App Engine
This is Rietveld 408576698