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

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

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/quota_internals_handler.cc
===================================================================
--- chrome/browser/ui/webui/quota_internals_handler.cc (revision 122416)
+++ chrome/browser/ui/webui/quota_internals_handler.cc (working copy)
@@ -15,6 +15,8 @@
#include "content/public/browser/web_ui.h"
#include "net/base/net_util.h"
+using content::BrowserContext;
+
namespace quota_internals {
QuotaInternalsHandler::QuotaInternalsHandler() {}
@@ -84,7 +86,8 @@
void QuotaInternalsHandler::OnRequestInfo(const base::ListValue*) {
if (!proxy_)
proxy_ = new QuotaInternalsProxy(this);
- proxy_->RequestInfo(Profile::FromWebUI(web_ui())->GetQuotaManager());
+ proxy_->RequestInfo(
+ content::BrowserContext::GetQuotaManager(Profile::FromWebUI(web_ui())));
}
} // namespace quota_internals

Powered by Google App Engine
This is Rietveld 408576698