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

Unified Diff: chrome/browser/ui/webui/workers_ui.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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/ui/webui/workers_ui.cc
diff --git a/chrome/browser/ui/webui/workers_ui.cc b/chrome/browser/ui/webui/workers_ui.cc
index f78d3c90cd4520ce1a5ca7587f31fc6bed9f8f9a..14b44a32c78973d0ecffd0112de1f7e01a66a1e0 100644
--- a/chrome/browser/ui/webui/workers_ui.cc
+++ b/chrome/browser/ui/webui/workers_ui.cc
@@ -140,7 +140,8 @@ void WorkersDOMHandler::HandleOpenDevTools(const ListValue* args) {
if (WorkerDevToolsManagerIO::HasDevToolsClient(worker_process_host_id,
worker_route_id))
return;
- Profile* profile = web_ui_->GetProfile();
+ Profile* profile =
+ Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context());
if (!profile)
return;
DevToolsWindow* window = DevToolsWindow::CreateDevToolsWindowForWorker(

Powered by Google App Engine
This is Rietveld 408576698