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

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: Profile helper function, 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
« no previous file with comments | « chrome/browser/ui/webui/web_ui_test_handler.cc ('k') | content/browser/webui/web_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..48f5683ad885fbc393d9626ee3ae5590d78a59e1 100644
--- a/chrome/browser/ui/webui/workers_ui.cc
+++ b/chrome/browser/ui/webui/workers_ui.cc
@@ -140,7 +140,7 @@ 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::FromWebUI(web_ui_);
if (!profile)
return;
DevToolsWindow* window = DevToolsWindow::CreateDevToolsWindowForWorker(
« no previous file with comments | « chrome/browser/ui/webui/web_ui_test_handler.cc ('k') | content/browser/webui/web_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698