Index: chrome/browser/ui/webui/quota_internals_handler.cc |
diff --git a/chrome/browser/ui/webui/quota_internals_handler.cc b/chrome/browser/ui/webui/quota_internals_handler.cc |
index f1322b8848c8633cf05839dfde58bff999ff343a..fd9817c9230578a3aac3b81ee453f5927f773959 100644 |
--- a/chrome/browser/ui/webui/quota_internals_handler.cc |
+++ b/chrome/browser/ui/webui/quota_internals_handler.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/webui/quota_internals_proxy.h" |
#include "chrome/browser/ui/webui/quota_internals_types.h" |
+#include "content/browser/tab_contents/tab_contents.h" |
#include "net/base/net_util.h" |
namespace quota_internals { |
@@ -82,7 +83,9 @@ void QuotaInternalsHandler::SendMessage(const std::string& message, |
void QuotaInternalsHandler::OnRequestInfo(const base::ListValue*) { |
if (!proxy_) |
proxy_ = new QuotaInternalsProxy(this); |
- proxy_->RequestInfo(web_ui_->GetProfile()->GetQuotaManager()); |
+ Profile* profile = |
+ Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context()); |
+ proxy_->RequestInfo(profile->GetQuotaManager()); |
} |
} // namespace quota_internals |